test: cover SQL fixture metadata and statement parsing by peterxcli · Pull Request #5941 · apache/datafusion-comet · GitHub
Skip to content

test: cover SQL fixture metadata and statement parsing - #5941

Open
peterxcli wants to merge 1 commit into
apache:mainfrom
peterxcli:test/sql-fixture-parser-coverage
Open

peterxcli wants to merge 1 commit into
apache:mainfrom
peterxcli:test/sql-fixture-parser-coverage

Conversation

@peterxcli

Copy link
Copy Markdown
Member

Which issue does this PR close?

No linked issue; this adds test coverage for the existing SQL fixture parser.

Rationale for this change

The parser tests cover query assertion modes but do not directly check the configuration and version metadata that control fixture execution, or the statement records and table names used for diagnostics and cleanup.

What changes are included in this PR?

Add four tests for empty/comment-only fixtures, configuration ordering and whitespace, independent Spark version bounds, and mixed statement/query records. Check multiline SQL, source line numbers, table extraction, and the final record with and without a trailing blank line.

How are these changes tested?

All 12 tests in SqlFileTestParserSuite pass locally on Spark 3.5.9 and 4.1.3 with JDK 17, including the four new tests. make format (Spark 3.5) and Apache RAT passed.

@github-actions github-actions Bot added enhancement New feature or request test Testing related labels Sep 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request test Testing related

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant