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

[Isthmus][SQLExpression] Produce projection/filter extended expressions with predefined column names #229

Open
davisusanibar opened this issue Feb 13, 2024 · 0 comments

Comments

@davisusanibar
Copy link
Contributor

The aim of this enhancement is to produce projection/filter extended expressions with predefined column names. The SQL Expression currently generates column names using the format column-[0...n]

Current:

new SqlExpressionToSubstrait().convert(new String[]{"N_REGIONKEY + 10", "N_NATIONKEY > 18"}, ...);

Produce:
column-1   column-2
23         false
30         true

Proposal:

new SqlExpressionToSubstrait().convert(new String[]{"N_REGIONKEY + 10", "N_NATIONKEY > 18"}, 
    new String[]{"key_10", "key_18"},  ...);

Produce:
key_10   key_18
23       false
30       true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant