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

Added a capability to support GROUP BY statement #12

Closed
wants to merge 1 commit into from

Conversation

Yury-Fridlyand
Copy link

SQL_GB_GROUP_BY_CONTAINS_SELECT: The GROUP BY clause must contain all nonaggregated columns in the select list. It can contain columns that are not in the select list.

Signed-off-by: Yury Fridlyand yuryf@bitquilltech.com

Description

Connector reports to PBI that the driver can do grouping in query
MSDN: https://docs.microsoft.com/en-us/sql/odbc/reference/syntax/sqlgetinfo-function?view=sql-server-ver15

Issues Resolved

AOS-235

Check List

  • New functionality includes testing.
    • All tests pass, including unit test, integration test and doctest
  • New functionality has been documented.
    • New functionality has javadoc added
    • New functionality has user manual doc added
  • Commits are signed per the DCO using --signoff

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

SQL_GB_GROUP_BY_CONTAINS_SELECT: The GROUP BY clause must contain all nonaggregated columns in the select list. It can contain columns that are not in the select list.

Signed-off-by: Yury Fridlyand <yuryf@bitquilltech.com>
@Yury-Fridlyand Yury-Fridlyand requested review from a user, kylepbit and raymond-lum December 1, 2021 02:54
@@ -99,6 +99,7 @@ SqlOdbcPBIConnectorImpl = (Server as text) as table =>
SupportsTop = false,
LimitClauseKind = LimitClauseKind.LimitOffset,
Sql92Conformance = ODBC[SQL_SC][SQL_SC_SQL92_FULL],
GroupByCapabilities = ODBC[SQL_GB][SQL_GB_GROUP_BY_CONTAINS_SELECT],
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be fixed in the driver.

@ghost
Copy link

ghost commented Dec 20, 2021

This PR is getting closed as group by is supported by the driver thus makes this PR irrelevant.
image

@ghost ghost closed this Dec 20, 2021
@Yury-Fridlyand Yury-Fridlyand deleted the pbi-add-groupby-cap-AOS-235 branch June 17, 2022 21:13
MitchellGale added a commit that referenced this pull request Aug 16, 2023
…project#1972)

* Spotless apply on PPL (#339)

Signed-off-by: Mitchell Gale <Mitchell.Gale@improving.com>

* Update ppl/src/test/java/org/opensearch/sql/ppl/parser/AstExpressionBuilderTest.java

Co-authored-by: Guian Gumpac <guian.gumpac@improving.com>
Signed-off-by: Mitchell Gale <Mitchell.gale@improving.com>

---------

Signed-off-by: Mitchell Gale <Mitchell.Gale@improving.com>
Signed-off-by: Mitchell Gale <Mitchell.gale@improving.com>
Co-authored-by: Guian Gumpac <guian.gumpac@improving.com>
MitchellGale added a commit that referenced this pull request Aug 22, 2023
…project#1972)

* Spotless apply on PPL (#339)

Signed-off-by: Mitchell Gale <Mitchell.Gale@improving.com>

* Update ppl/src/test/java/org/opensearch/sql/ppl/parser/AstExpressionBuilderTest.java

Co-authored-by: Guian Gumpac <guian.gumpac@improving.com>
Signed-off-by: Mitchell Gale <Mitchell.gale@improving.com>

---------

Signed-off-by: Mitchell Gale <Mitchell.Gale@improving.com>
Signed-off-by: Mitchell Gale <Mitchell.gale@improving.com>
Co-authored-by: Guian Gumpac <guian.gumpac@improving.com>
MitchellGale added a commit that referenced this pull request Aug 22, 2023
…project#1972)

* Spotless apply on PPL (#339)

Signed-off-by: Mitchell Gale <Mitchell.Gale@improving.com>

* Update ppl/src/test/java/org/opensearch/sql/ppl/parser/AstExpressionBuilderTest.java

Co-authored-by: Guian Gumpac <guian.gumpac@improving.com>
Signed-off-by: Mitchell Gale <Mitchell.gale@improving.com>

---------

Signed-off-by: Mitchell Gale <Mitchell.Gale@improving.com>
Signed-off-by: Mitchell Gale <Mitchell.gale@improving.com>
Co-authored-by: Guian Gumpac <guian.gumpac@improving.com>
MitchellGale added a commit that referenced this pull request Aug 22, 2023
…project#1972)

* Spotless apply on PPL (#339)

Signed-off-by: Mitchell Gale <Mitchell.Gale@improving.com>

* Update ppl/src/test/java/org/opensearch/sql/ppl/parser/AstExpressionBuilderTest.java

Co-authored-by: Guian Gumpac <guian.gumpac@improving.com>
Signed-off-by: Mitchell Gale <Mitchell.gale@improving.com>

---------

Signed-off-by: Mitchell Gale <Mitchell.Gale@improving.com>
Signed-off-by: Mitchell Gale <Mitchell.gale@improving.com>
Co-authored-by: Guian Gumpac <guian.gumpac@improving.com>
This pull request was closed.
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

Successfully merging this pull request may close these issues.

2 participants