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

The calculated field won't be selected when query using wildcards #711

Open
goldmedal opened this issue Jul 24, 2024 · 1 comment
Open

Comments

@goldmedal
Copy link
Contributor

Description

In the wren core rust version, we show all the physical columns when selecting a model with the wildcard expr. However, in the spec of Wren engine, the calculated field shouldn't be selected when using the wildcard expr. Because the calculated field will generate some join plans for a model, we want to make sure it only be used when the user selects it specifically.

Given a model A with 3 columns, c1, c2 and cf3. If cf3 is calculated. The select all SQL should only get c1 and c2.

SELECT * FROM A    -> SELECT c1, c2 FROM A

If the user want to use cf3, they should select this column specifically.

SELECT c1, c2, cf3 FROM A
@goldmedal
Copy link
Contributor Author

I filed an issue apache/datafusion#11639. I will try to implement it.

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