mirror of
https://github.com/apache/datafusion-sqlparser-rs.git
synced 2025-10-09 13:40:22 +00:00
snowflake: fix rendering of SELECT TOP (#1070)
This commit is contained in:
parent
1baec96685
commit
2950a843c3
5 changed files with 53 additions and 11 deletions
|
@ -1147,3 +1147,11 @@ fn parse_pivot_of_table_factor_derived() {
|
|||
"SELECT * FROM (SELECT place_id, weekday, open FROM times AS p) PIVOT(max(open) FOR weekday IN (0, 1, 2, 3, 4, 5, 6)) AS p (place_id, open_sun, open_mon, open_tue, open_wed, open_thu, open_fri, open_sat)"
|
||||
);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn parse_top() {
|
||||
snowflake().one_statement_parses_to(
|
||||
"SELECT TOP 4 c1 FROM testtable",
|
||||
"SELECT TOP 4 c1 FROM testtable",
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue