File tree 2 files changed +16
-0
lines changed
2 files changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -1000,6 +1000,8 @@ pub const RESERVED_FOR_TABLE_ALIAS: &[Keyword] = &[
1000
1000
Keyword :: ANTI ,
1001
1001
Keyword :: SEMI ,
1002
1002
Keyword :: RETURNING ,
1003
+ Keyword :: ASOF ,
1004
+ Keyword :: MATCH_CONDITION ,
1003
1005
// for MSSQL-specific OUTER APPLY (seems reserved in most dialects)
1004
1006
Keyword :: OUTER ,
1005
1007
Keyword :: SET ,
Original file line number Diff line number Diff line change @@ -2731,6 +2731,20 @@ fn asof_joins() {
2731
2731
"ON s.state = p.state " ,
2732
2732
"ORDER BY s.observed" ,
2733
2733
) ) ;
2734
+
2735
+ // Test without explicit aliases
2736
+ #[ rustfmt:: skip]
2737
+ snowflake_and_generic ( ) . verified_query ( concat ! (
2738
+ "SELECT * " ,
2739
+ "FROM snowtime " ,
2740
+ "ASOF JOIN raintime " ,
2741
+ "MATCH_CONDITION (snowtime.observed >= raintime.observed) " ,
2742
+ "ON snowtime.state = raintime.state " ,
2743
+ "ASOF JOIN preciptime " ,
2744
+ "MATCH_CONDITION (showtime.observed >= preciptime.observed) " ,
2745
+ "ON showtime.state = preciptime.state " ,
2746
+ "ORDER BY showtime.observed" ,
2747
+ ) ) ;
2734
2748
}
2735
2749
2736
2750
#[ test]
You can’t perform that action at this time.
0 commit comments