Skip to content

Conversation

@cloud-fan
Copy link
Contributor

What changes were proposed in this pull request?

This PR is a small refactor. In DS v2 CRAS/RTAS command, we run a nested AppendData/OverwriteByExpression command by creating a QueryExecution. This QueryExecution will create another temp QueryExecution to eagerly execute commands. This PR avoids the unnecessary temp QueryExecution by using CommandExecutionMode.SKIP to create QueryExecution.

Why are the changes needed?

Remove useless temp QueryExecution objects.

Does this PR introduce any user-facing change?

no

How was this patch tested?

existing tests

Was this patch authored or co-authored using generative AI tooling?

cursor 2.2.43

@github-actions github-actions bot added the SQL label Dec 24, 2025
}
}

test("CTAS/RTAS should trigger two query executions") {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This test can pass before this PR, I'm adding it just to make sure this refactor doesn't break it and still reports two executions.

@cloud-fan
Copy link
Contributor Author

cc @pan3793

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants