Skip to content

Chore/validate task creation#1135

Merged
yokofly merged 2 commits intodevelopfrom
chore/validate-task-creation
Mar 19, 2026
Merged

Chore/validate task creation#1135
yokofly merged 2 commits intodevelopfrom
chore/validate-task-creation

Conversation

@yokofly
Copy link
Copy Markdown
Collaborator

@yokofly yokofly commented Mar 19, 2026

Problem

The task creation does not verify the correctness of query and the target. User get no feedback when there is any error until the task is scheduled to execute.

Possible cases when we should abort task creation due to error includes:

  • The task query (after AS keyword) has syntax error and cannot be executed.
  • The target stream (after INTO keyword before AS keyword) does not exist.
  • The target stream exists, but its schema does not match the task query output.

Propose

Do additional validation on task creation for the task query and target stream. Make sure it can be executed as in src/Task/TaskExecution.h and src/Task/TaskExecution.cpp . If any error, raise an exception with error message.

Related Source Code

under src/Task folder

Test

Add stateless tests for negative cases mentioned above.

@yokofly yokofly merged commit c8a0248 into develop Mar 19, 2026
8 of 11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants