Omega359 commented on issue #8736:
URL:
https://github.com/apache/arrow-datafusion/issues/8736#issuecomment-1987257839
```
let table_provider =
norm.session_context.table_provider(norm.table_name.clone()).wait().unwrap();
let table_schema_provider =
TableSchemaProvider::new(norm.table_name.clone(), table_provider.as_ref());
let sql_to_rel = SqlToRel::new_with_options(&table_schema_provider,
parser_options);
let sql_to_expr = sql_to_rel.sql_to_expr(expr.clone(), df.schema(), &mut
PlannerContext::new());
if sql_to_expr.is_err() {
error!("Unable to transform sql expression '{}' to datafusion Expr:
{:?}", &expression, sql_to_expr.err());
panic!();
}
sql_to_expr.unwrap()
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]