Skip to content

Add SessionState::create_logical_expr_from_sql_expr #18278

@rkrishn7

Description

@rkrishn7

Is your feature request related to a problem or challenge?

Currently we have SessionState::create_logical_expr.

It would be nice to have a method that allows creating a logical expression from a sqlparser::ast::Expr. For instances where parsing has already been done.

Describe the solution you'd like

Add SessionState::create_logical_expr_from_sql_expr and SessionState::create_logical_expr_from_sql_expr_with_aliasor something similar that takes a parsed expression and returns the logical equivalent.

Describe alternatives you've considered

No response

Additional context

No response

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions