mirror of
https://github.com/apache/datafusion-sqlparser-rs.git
synced 2025-09-02 04:07:21 +00:00
Implement Hive QL Parsing (#235)
This commit is contained in:
parent
17f8eb9c5a
commit
8a214f9919
16 changed files with 1388 additions and 176 deletions
|
@ -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> {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue