Implement Hive QL Parsing (#235)

This commit is contained in:
Stephen Carman 2021-02-04 14:53:20 -05:00 committed by GitHub
parent 17f8eb9c5a
commit 8a214f9919
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
16 changed files with 1388 additions and 176 deletions

View file

@ -132,6 +132,7 @@ pub fn all_dialects() -> TestedDialects {
Box::new(MsSqlDialect {}),
Box::new(AnsiDialect {}),
Box::new(SnowflakeDialect {}),
Box::new(HiveDialect {}),
],
}
}
@ -153,7 +154,7 @@ pub fn expr_from_projection(item: &SelectItem) -> &Expr {
}
pub fn number(n: &'static str) -> Value {
Value::Number(n.parse().unwrap())
Value::Number(n.parse().unwrap(), false)
}
pub fn table_alias(name: impl Into<String>) -> Option<TableAlias> {