Support multi args for unnest (#909)

Signed-off-by: jayzhan211 <jayzhan211@gmail.com>
Co-authored-by: Andrew Lamb <andrew@nerdnetworks.org>
This commit is contained in:
Jay Zhan 2023-07-01 04:50:46 +08:00 committed by GitHub
parent f05f71e20d
commit 20ac38b4da
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 98 additions and 14 deletions

View file

@ -197,6 +197,7 @@ pub fn expr_from_projection(item: &SelectItem) -> &Expr {
}
}
/// Creates a `Value::Number`, panic'ing if n is not a number
pub fn number(n: &'static str) -> Value {
Value::Number(n.parse().unwrap(), false)
}