Repository navigation
Proposal: write compliance/query/cases expected results as ost tables #745
Closed
ashlearnnext-star
started this conversation in
General
Replies: 1 comment
|
@ashlearnnext-star Is this PR intended for the Layer 2 compliance tests? If so, I believe @julianhyde is already working on migrating those to the .ost format using the reference converter. @ekut moved the Layer 3 tests to the new output format because the .ost runner and query expander don't support Layer 3 yet. For Layer 2, though, I think it's more expedient to let Julian's PR land rather than introduce an intermediate format. |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
@ekut's #741 just moved the wide table suite's expected results from expected.json to expected.txt in ost's table format, for consistency with where ost is headed. I think the same move makes sense for cases.
To be clear on scope, like #741 this is just a notation change, not a move to actually running these through ost yet — README.md's own "Future work" section says the same thing is blocked on the view expander. query.ossie.sql and reference.duckdb.sql would stay exactly as they are. Only expected.sql would change, from a runnable SQL statement like:
SELECT *
FROM (VALUES (10, 8750.00, 3),
(20, 10875.00, 5),
(30, 9400.00, 6)) AS expected (deptno, sum_sal, emp_count);
to a plain ost-style table like:
+--------+----------+-----------+
| deptno | sum_sal | emp_count |
+--------+----------+-----------+
| 10 | 8750.00 | 3 |
| 20 | 10875.00 | 5 |
| 30 | 9400.00 | 6 |
+--------+----------+-----------+
#741 also pulled each case's title/question/behavior/spec text out into one shared README. I'd leave that part alone here, since query.ossie.sql's header comment serves a slightly different purpose (it's the query a tool could submit as-is, per README.md). Open to doing it either way though.
Same open question #741 raised applies here too: ost compares cell text exactly, so 350.00 would not match 350, while this suite's own rules compare by value and don't distinguish exact vs approximate from the table alone. Would want to keep the existing comparison rules, same as #741 did.
This would touch all existing cases (a01-b20 plus my new B21/B22), so wanted to check before doing the work rather than showing up with a 30+ file PR. Happy to do the conversion if this sounds right.
cc @ekut @christianeu-db
All reactions