Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add async filter optimisation for cast removal #41

Open
chris-twiner opened this issue Jul 5, 2023 · 1 comment
Open

add async filter optimisation for cast removal #41

chris-twiner opened this issue Jul 5, 2023 · 1 comment

Comments

@chris-twiner
Copy link
Contributor

chris-twiner commented Jul 5, 2023

given

create view table_view select *. cast( longfield as string) longfield_string from thetable;
select * from table_view where longfield_string = '12353463434'

the query will be treated as:

select * form table_view where cast (longfield as string) = '12353463434'

it should instead be treated as:

select * form table_view where longfield = cast ( '12353463434' as long) 

which will constant fold and allow longfield to be pushed down

@chris-twiner
Copy link
Contributor Author

low prio due to demand change and potentially not sufficient configuration concept (i.e. given how much cast does it's possible a case is not possible to unpack - non-deterministic expressions etc.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant