Add ODBC escape syntax support for time expressions (#1953)

This commit is contained in:
etgarperets 2025-07-29 13:37:04 +03:00 committed by GitHub
parent 97a5b61a73
commit bde269b56f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 259 additions and 110 deletions

View file

@ -327,13 +327,14 @@ fn data_type_timestamp_ntz() {
// Literal
assert_eq!(
databricks().verified_expr("TIMESTAMP_NTZ '2025-03-29T18:52:00'"),
Expr::TypedString {
Expr::TypedString(TypedString {
data_type: DataType::TimestampNtz,
value: ValueWithSpan {
value: Value::SingleQuotedString("2025-03-29T18:52:00".to_owned()),
span: Span::empty(),
}
}
},
uses_odbc_syntax: false
})
);
// Cast