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

[BEAM-9424] Allow grouping by LogicalType #11015

Merged
merged 1 commit into from Mar 3, 2020

Conversation

fediazgon
Copy link

@fediazgon fediazgon commented Mar 2, 2020

GROUP BY statement fails if field is LogicalType. E.g., when converting a BQ schema with either TIME, DATE or DATETIME to a Beam schema and grouping by one or more of these fields.

This PR add supports for grouping by LogicalType.

This fixes https://issues.apache.org/jira/browse/BEAM-9424.

Please add a meaningful description for your change here


Thank you for your contribution! Follow this checklist to help us incorporate your contribution quickly and easily:

  • Choose reviewer(s) and mention them in a comment (R: @username).
  • Format the pull request title like [BEAM-XXX] Fixes bug in ApproximateQuantiles, where you replace BEAM-XXX with the appropriate JIRA issue, if applicable. This will automatically link the pull request to the issue.
  • Update CHANGES.md with noteworthy changes.
  • If this contribution is large, please file an Apache Individual Contributor License Agreement.

See the Contributor Guide for more tips on how to make review process smoother.

Post-Commit Tests Status (on master branch)

Lang SDK Apex Dataflow Flink Gearpump Samza Spark
Go Build Status --- --- Build Status --- --- Build Status
Java Build Status Build Status Build Status
Build Status
Build Status
Build Status
Build Status
Build Status Build Status Build Status
Build Status
Build Status
Python Build Status
Build Status
Build Status
Build Status
--- Build Status
Build Status
Build Status
Build Status
Build Status
--- --- Build Status
XLang --- --- --- Build Status --- --- Build Status

Pre-Commit Tests Status (on master branch)

--- Java Python Go Website
Non-portable Build Status Build Status
Build Status
Build Status Build Status
Portable --- Build Status --- ---

See .test-infra/jenkins/README for trigger phrase, status and link of all Jenkins jobs.

@kanterov
Copy link
Member

kanterov commented Mar 3, 2020

R: @kanterov

@Test
public void testLogicalTypes() {
Schema beamSchemaWithLogicalTypes =
BigQueryUtils.fromTableSchema(
Copy link
Member

Choose a reason for hiding this comment

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

Is it possible to use DummySqlTimeType and DummySqlDateType as in other tests? I find dependency on gcp-io not necessary

@fediazgon fediazgon force-pushed the 9424-logicalTypes-groupBy branch 2 times, most recently from 8041197 to 73576ac Compare March 3, 2020 13:37
@kanterov
Copy link
Member

kanterov commented Mar 3, 2020

Run Java PreCommit

@kanterov
Copy link
Member

kanterov commented Mar 3, 2020

Jenkins doesn't build

@kanterov kanterov closed this Mar 3, 2020
@kanterov kanterov reopened this Mar 3, 2020
@kanterov kanterov self-requested a review March 3, 2020 14:37
Copy link
Member

@kanterov kanterov left a comment

Choose a reason for hiding this comment

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

Need to figure out why tests don't run on Jenkins

@kanterov
Copy link
Member

kanterov commented Mar 3, 2020

Run Java PreCommit

@kanterov
Copy link
Member

kanterov commented Mar 3, 2020

Run SQL PostCommit

@kanterov
Copy link
Member

kanterov commented Mar 3, 2020

retest this please

1 similar comment
@kanterov
Copy link
Member

kanterov commented Mar 3, 2020

retest this please

@kanterov
Copy link
Member

kanterov commented Mar 3, 2020

LGTM

@kanterov kanterov merged commit dba6aa7 into apache:master Mar 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants