-
Notifications
You must be signed in to change notification settings - Fork 141
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
[BUG] Opensearch returns null for all columns not listed in GROUP BY statement #258
Comments
Hi @Yury-Fridlyand i think it's probably because the group by item was not present in the select items, could you try the following query:
|
Dear @chloe-zh,
Actually, different SQL servers (and different versions) have different behavior. Usually, server reject query if it has a column without an aggregation function and not listed in |
If aggregation function is specified, OpenSearch returns a valid result:
|
|
Describe the bug
Opensearch returns
null
for all columns not listed inGROUP BY
statementTo Reproduce
Steps to reproduce the behavior:
See below for data sample:
GROUP BY
statementExpected behavior
In this very specific query at least
key
column shouldn't be empty (filled bynull
s)Plugins
The default set:
Host/Environment (please complete the following information):
Docker container v.1.0.0
The text was updated successfully, but these errors were encountered: