mirror of
https://github.com/apache/datafusion-sqlparser-rs.git
synced 2025-08-04 14:28:22 +00:00
Enable map access for numbers, multiple nesting levels (#356)
* enable integer keys for map access * enable map access for number keys * Add tests for string based map access * MapAccess: unbox single quoted strings to always display double quoted strings for map access * cargo fmt * cargo clippy * Fix compilation with nostd by avoiding format! * fix codestyle Co-authored-by: Andrew Lamb <andrew@nerdnetworks.org>
This commit is contained in:
parent
014b82f03d
commit
d498887a5d
4 changed files with 91 additions and 5 deletions
|
@ -194,7 +194,7 @@ fn rename_table() {
|
|||
|
||||
#[test]
|
||||
fn map_access() {
|
||||
let rename = "SELECT a.b[\"asdf\"] FROM db.table WHERE a = 2";
|
||||
let rename = r#"SELECT a.b["asdf"] FROM db.table WHERE a = 2"#;
|
||||
hive().verified_stmt(rename);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue