Skip to content

[Spark] Support TLP Oracle#1285

Merged
mrigger merged 4 commits intosqlancer:mainfrom
codebreaker32:feat/spark-tlp
Apr 4, 2026
Merged

[Spark] Support TLP Oracle#1285
mrigger merged 4 commits intosqlancer:mainfrom
codebreaker32:feat/spark-tlp

Conversation

@codebreaker32
Copy link
Copy Markdown
Contributor

@codebreaker32 codebreaker32 commented Dec 7, 2025

This PR creates a basic framework for Spark SQL and uses the TLP oracle to test it via the Thrift Server.

  • Implemented JDBC connection to the Spark Thrift Server (using HiveServer2 protocol).

  • Implemented creating Spark tables (Parquet format) with basic column types (BOOLEAN, INT, DOUBLE, STRING, TIMESTAMP, DATE).

  • Implemented supported table constraint (NOT_NULL)

  • Implemented SELECT WHERE clause generation for the TLP

Inspired from #1201
Closes #1025
Ref:https://spark.apache.org/docs/latest/sql-ref.html

@mrigger

@codebreaker32
Copy link
Copy Markdown
Contributor Author

@mrigger Can you take a look?

Copy link
Copy Markdown
Contributor

@mrigger mrigger left a comment

Choose a reason for hiding this comment

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

Thanks a lot for the PR and very sorry for the late review! This looks mostly great! Regarding the expected errors, there should be no syntax errors happening. Could you please check?

@codebreaker32
Copy link
Copy Markdown
Contributor Author

Is it fine now? @mrigger

@mrigger
Copy link
Copy Markdown
Contributor

mrigger commented Apr 4, 2026

Yes, LGTM. Thanks a lot for the PR! It is great to now also have support for Spark!

@mrigger
Copy link
Copy Markdown
Contributor

mrigger commented Apr 4, 2026

Ah, it seems the general tests are failing. Can you apply the formatter (mvn formatter:format and use mvn verify -DskipTests to double check)?

@codebreaker32
Copy link
Copy Markdown
Contributor Author

Done! Looks fine now

@codebreaker32 codebreaker32 requested a review from mrigger April 4, 2026 09:58
Copy link
Copy Markdown
Contributor

@mrigger mrigger left a comment

Choose a reason for hiding this comment

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

LGTM, thank you!

@mrigger mrigger merged commit a839a94 into sqlancer:main Apr 4, 2026
16 of 27 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.

ask support for SparkSQL

2 participants