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
CREATE TABLE fails with a select query that contains a column derived from the NTILE window function
To Reproduce
in the sqllogictest directory, run this in the window.slt file
# this test fails # statement okCREATETABLEntile_tableasSELECT NTILE(8) OVER (ORDER BY c4) as ntile_1, NTILE(12) OVER (ORDER BY c12 DESC) AS ntile_2 FROM aggregate_test_100 LIMIT10# this test passes
statement ok
SELECT NTILE(8) OVER (ORDER BY c4) as ntile_1, NTILE(12) OVER (ORDER BY c12 DESC) AS ntile_2 FROM aggregate_test_100 LIMIT10
Note that the query (select statement) succeeds while the create table ddl version does not.
Expected behavior
The table is successfully created using the DDL. Create table DDL should be compatible with all queries, including queries that contain an NTILE window function.
Describe the bug
CREATE TABLE
fails with a select query that contains a column derived from theNTILE
window functionTo Reproduce
in the sqllogictest directory, run this in the window.slt file
Note that the query (select statement) succeeds while the create table ddl version does not.
Expected behavior
The table is successfully created using the DDL. Create table DDL should be compatible with all queries, including queries that contain an NTILE window function.
Additional context
I found this while writing tests for #7638.
The text was updated successfully, but these errors were encountered: