-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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-1082] Make the legacy SQL flag consistent between Java and Python #1497
Conversation
@@ -374,7 +374,7 @@ def __init__(self, table=None, dataset=None, project=None, query=None, | |||
self.use_legacy_sql = True | |||
else: | |||
self.query = query | |||
self.use_legacy_sql = use_legacy_sql | |||
self.use_legacy_sql = not use_standard_sql |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
create a JIRA issue to fix the internals later. It would make sense to use use_standard_sql
internally as well.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
useLegacySql: Specifies whether to use BigQuery's legacy | ||
SQL dialect for this query. The default value is true. If set to false, | ||
use_standard_sql: Specifies whether to use BigQuery's standard | ||
SQL dialect for this query. The default value is False. If set to true, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
capitalize True
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
Please add the JIRA to the PR title - [BEAM-873] |
Thanks for the comments. R: @chamikaramj @aaltay PTAL |
LGTM |
@robertwb please merge |
Refer to this link for build results (access rights to CI server needed): |
Refer to this link for build results (access rights to CI server needed): |
Refer to this link for build results (access rights to CI server needed): |
The name of the BigQuery option is Actually, this is probably reasonable from a user interface pov. Never mind ;) As long as the flags inside of the connector are named |
@dhalperi Why is it reasonable from a user pov? Would not it make sense for external interfaces to match the underlying service (BQ)? (Either way the interface should be consistent across beam sdks) |
I actually agree with @aaltay . I think both Python and Java should follow whatever BigQuery calls this feature in its publicly facing docs/APIs. |
I think we can do two things here:
I think 1 would have been better from the start but now it is a backward incompatible :/ |
Can we do 1 before the release? Right now we can change it, later we won't
be able to.
…On Dec 6, 2016 8:07 AM, "Sourabh Bajaj" ***@***.***> wrote:
I think we can do two things here:
1. Revert this and then change Java to use legacy_sql as a flag (
https://cloud.google.com/bigquery/querying-data#
bigquery-sync-query-java
<https://cloud.google.com/bigquery/querying-data#bigquery-sync-query-java>
)
2. Just let beam diverge from bigquery api docs.
I think 2 would have been better from the start but now it is a backward
incompatible :/
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#1497 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAdqgRZJ2enrr2hJ896jAZr-gCDfzYSeks5rFYeNgaJpZM4LDIvs>
.
|
Would that still not be backward incompatible for java or is that okay ? |
Be sure to do all of the following to help us incorporate your contribution
quickly and easily:
[BEAM-<Jira issue #>] Description of pull request
mvn clean verify
. (Even better, enableTravis-CI on your fork and ensure the whole test matrix passes).
<Jira issue #>
in the title with the actual Jira issuenumber, if there is one.
Individual Contributor License Agreement.
R: @chamikaramj @aaltay PTAL