Skip to content

Commit 123e119

Browse files
authored
Revert "Do not parse ASOF and MATCH_CONDITION as table factor aliases (apache#1698)"
This reverts commit 5f4be68.
1 parent 9a07f61 commit 123e119

File tree

2 files changed

+0
-16
lines changed

2 files changed

+0
-16
lines changed

src/keywords.rs

-2
Original file line numberDiff line numberDiff line change
@@ -1001,8 +1001,6 @@ pub const RESERVED_FOR_TABLE_ALIAS: &[Keyword] = &[
10011001
Keyword::ANTI,
10021002
Keyword::SEMI,
10031003
Keyword::RETURNING,
1004-
Keyword::ASOF,
1005-
Keyword::MATCH_CONDITION,
10061004
// for MSSQL-specific OUTER APPLY (seems reserved in most dialects)
10071005
Keyword::OUTER,
10081006
Keyword::SET,

tests/sqlparser_snowflake.rs

-14
Original file line numberDiff line numberDiff line change
@@ -2731,20 +2731,6 @@ fn asof_joins() {
27312731
"ON s.state = p.state ",
27322732
"ORDER BY s.observed",
27332733
));
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-
));
27482734
}
27492735

27502736
#[test]

0 commit comments

Comments
 (0)