You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Add sqllogictest in ci to verify execution results against vanilla spark sql. #123
sqllogictest is a commonly used data driven approach to verify query engine. We can use this to verify the results of comet are same as vanilla spark sql.
changed the title [-]Add sqllogictest to verify execution results against vanilla spark sql.[/-][+]Add sqllogictest in ci to verify execution results against vanilla spark sql.[/+]on Feb 27, 2024
Hmm, I guess the question is, how do you compare with Spark result in sqllogictest?
For example, in current unit test or e2e test like CometTPCDSQuerySuite, we compare Comet query result with Spark result generated in runtime by disabling Comet or golden filed generated by Spark.
But for sqllogictest, as I saw its usage in DataFusion, it works like comparing actual output with previous output (in sqllogictest file) to check output consistency. So it cannot be used to run Spark in runtime to get expected output.
But for sqllogictest, as I saw its usage in DataFusion, it works like comparing actual output with expected output (in sqllogictest file). So it cannot be used to run Spark in runtime to get expected output.
I'm not sure if this makes sense. I tend to think this doesn't make too much sense at this moment.
It is not something ready to use. As you said, we need to implement a sqllogictest test executor for Spark to talk to Spark connect. I think this makes thing complicated. For the test, we need Spark server, Spark connect client, sqllogictest text executor, sqllogictest... too many components which increase maintenance effort.
The slt files need to be run with both Spark and Comet. Although we have unit tests also doing like that, the number is limited.
We will soon have Spark test pipelines which cover Spark compatibility which leverage existing Spark tests. I think Spark test itself has most correct and highest coverage to make sure Comet's Spark compatibility. If there are very corner cases which are missing in Spark tests, I think these cases should be less. We probably can add the tests directly into Spark or just in Comet as unit test.
Activity
[-]Add sqllogictest to verify execution results against vanilla spark sql.[/-][+]Add sqllogictest in ci to verify execution results against vanilla spark sql.[/+]liurenjie1024 commentedon Feb 27, 2024
I'm happy to take this is we have reached consensus on this.
viirya commentedon Feb 27, 2024
Hmm, I guess the question is, how do you compare with Spark result in sqllogictest?
For example, in current unit test or e2e test like CometTPCDSQuerySuite, we compare Comet query result with Spark result generated in runtime by disabling Comet or golden filed generated by Spark.
But for sqllogictest, as I saw its usage in DataFusion, it works like comparing actual output with previous output (in sqllogictest file) to check output consistency. So it cannot be used to run Spark in runtime to get expected output.
liurenjie1024 commentedon Feb 27, 2024
Why? We can use spark connect.
viirya commentedon Feb 27, 2024
Can sqllogictest run Spark connect? And how do you compare it in sqllogictest?
liurenjie1024 commentedon Feb 27, 2024
There are two ways to do this:
Please note that the link I provided is java's implementation of sqllogictest.
liurenjie1024 commentedon Feb 27, 2024
We just run the slt files against both vanilla spark and comet, and they both should be ok.
viirya commentedon Feb 27, 2024
I'm not sure if this makes sense. I tend to think this doesn't make too much sense at this moment.
liurenjie1024 commentedon Feb 27, 2024
Sounds reasonable, if we can port spark tests in this repo, it would be enough. Thanks for sharing!
Bring internal release up-to-date with OSS 0.3.0 release (apache#496)
chore: bring in latest OSS comet changes (apache#498)
docs: Add contributor docs to APPLE-README (apache#628)
chore: Reset `branch-3.4.3-apple.diff` (apache#681)
feat: Enable shuffle by default, disable hash join by default (apache…