mirror of
https://github.com/apache/datafusion-sqlparser-rs.git
synced 2025-08-04 06:18:17 +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
|
@ -364,8 +364,9 @@ fn parse_set() {
|
|||
stmt,
|
||||
Statement::SetVariable {
|
||||
local: false,
|
||||
hivevar: false,
|
||||
variable: "a".into(),
|
||||
value: SetVariableValue::Ident("b".into()),
|
||||
value: vec![SetVariableValue::Ident("b".into())],
|
||||
}
|
||||
);
|
||||
|
||||
|
@ -374,8 +375,11 @@ fn parse_set() {
|
|||
stmt,
|
||||
Statement::SetVariable {
|
||||
local: false,
|
||||
hivevar: false,
|
||||
variable: "a".into(),
|
||||
value: SetVariableValue::Literal(Value::SingleQuotedString("b".into())),
|
||||
value: vec![SetVariableValue::Literal(Value::SingleQuotedString(
|
||||
"b".into()
|
||||
))],
|
||||
}
|
||||
);
|
||||
|
||||
|
@ -384,8 +388,9 @@ fn parse_set() {
|
|||
stmt,
|
||||
Statement::SetVariable {
|
||||
local: false,
|
||||
hivevar: false,
|
||||
variable: "a".into(),
|
||||
value: SetVariableValue::Literal(number("0")),
|
||||
value: vec![SetVariableValue::Literal(number("0"))],
|
||||
}
|
||||
);
|
||||
|
||||
|
@ -394,8 +399,9 @@ fn parse_set() {
|
|||
stmt,
|
||||
Statement::SetVariable {
|
||||
local: false,
|
||||
hivevar: false,
|
||||
variable: "a".into(),
|
||||
value: SetVariableValue::Ident("DEFAULT".into()),
|
||||
value: vec![SetVariableValue::Ident("DEFAULT".into())],
|
||||
}
|
||||
);
|
||||
|
||||
|
@ -404,8 +410,9 @@ fn parse_set() {
|
|||
stmt,
|
||||
Statement::SetVariable {
|
||||
local: true,
|
||||
hivevar: false,
|
||||
variable: "a".into(),
|
||||
value: SetVariableValue::Ident("b".into()),
|
||||
value: vec![SetVariableValue::Ident("b".into())],
|
||||
}
|
||||
);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue