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

Handle duplicate column names #46

Open
bcho opened this issue Sep 24, 2022 · 0 comments
Open

Handle duplicate column names #46

bcho opened this issue Sep 24, 2022 · 0 comments
Labels
bug Something isn't working enhancement New feature or request

Comments

@bcho
Copy link
Member

bcho commented Sep 24, 2022

Bad case:

haha
| extend p = 1 + 2, lines = 3 + 2
| extend q = p + lines
| take 100
q1 as (with q0 as (select 1 + 2 as p, 3 + 2 as lines, * from ku_cli_mcpxw3gjzWAA7F5KnFa3F_haha) select p + lines as q, * from q0) select * from q1 limit 100

This will yield:

q,p,lines,ts,lines:1

Where lines:1 is generated by sqlite, to distinct duplicated column names (ref). We should remove this column from the output. However, we need the "original column" information from the C API to filter this out.

@bcho bcho added bug Something isn't working enhancement New feature or request labels Sep 24, 2022
@bcho bcho changed the title Handle duplicate column name Handle duplicate column names Sep 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant