Skip to content

Added logic to fail test compilation if test SQL or expected SQL are empty#2082

Merged
fernst merged 3 commits intomainfrom
improve-ut-compilation
Feb 6, 2026
Merged

Added logic to fail test compilation if test SQL or expected SQL are empty#2082
fernst merged 3 commits intomainfrom
improve-ut-compilation

Conversation

@fernst
Copy link
Collaborator

@fernst fernst commented Feb 5, 2026

No description provided.

@fernst fernst requested a review from a team as a code owner February 5, 2026 21:16
@fernst fernst requested review from andrzej-grudzien, ikholopov-omni and kolina and removed request for a team and andrzej-grudzien February 5, 2026 21:16
this.proto.expectedOutputQuery = testContext.apply(this.contextableQuery);

// Check if the test query and expected output query are non-empty.
if (this.proto.testQuery === null || this.proto.testQuery.trim() === "") {
Copy link
Collaborator

Choose a reason for hiding this comment

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

You can !this.proto.testQuery to cover both null and undefined.

Same below

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Thanks! Will change

this.proto.expectedOutputQuery = testContext.apply(this.contextableQuery);

// Check if the test query and expected output query are non-empty.
if (!this.proto.testQuery || this.proto.testQuery.trim() === "") {
Copy link
Contributor

Choose a reason for hiding this comment

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

!this.proto.testQuery.trim(), same below

@fernst fernst merged commit 6559fc2 into main Feb 6, 2026
6 checks passed
@fernst fernst deleted the improve-ut-compilation branch February 6, 2026 18:54
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.

3 participants