-
Notifications
You must be signed in to change notification settings - Fork 665
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
When using SELECT * all FUNC() are returned as a distinct columns even if they are defined "as col_name
"
#1797
Comments
col_name
"col_name
"
Hi @mathiasrw would like to work on this if nobody's picked it up yet. |
Hello @mathiasrw found the issue. There's a flaw in how the
Let's consider the above example provided in the issue: at the stage where the object for Based on my preliminary investigations, here are some of the possible solutions:
This gives the expected output: The second solution doesn't seem to have any side affects when I ran the test cases. |
Very very nice work diving to the core of this issue. Would you be OK to make a pull request with your proposed fix? Have a look in https://github.com/AlaSQL/alasql/blob/develop/CONTRIBUTING.md if you have any doubts, or ping me here. |
Hi @mathiasrw, have raised the PR with fix as well as test cases. Do let me know in case you see any issues. |
Released as part of v4.1.10 |
If we give it this data and this query:
The text was updated successfully, but these errors were encountered: