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

BQ - Support for External Data Tables #696

Merged
merged 1 commit into from
Jul 3, 2019

Conversation

modular-magician
Copy link
Collaborator

@modular-magician modular-magician commented May 9, 2019

Original Author: @rickard-von-essen

*bigquery*: add support for external data tables to `google_bigtable_instance`

Copy link
Collaborator

@rileykarson rileykarson left a comment

Choose a reason for hiding this comment

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

Generally, we'll want to add all the default values we can I think. I marked some, but not all cases where the API docs define one- we should? be able to set them all.

I refer to being able to set a value "safely"- what I mean there is related to how some APIs behave; sending a default will cause the API to return a nil value to indicate that it is using the default, instead of the default value. Terraform will diff and won't handle these cases well. We have some remediation, so if you're seeing this behaviour flag it and we'll work through the best solution.

google-beta/resource_bigquery_table.go Show resolved Hide resolved
google-beta/resource_bigquery_table.go Show resolved Hide resolved
},
// SkipLeadingRows: [Optional] The number of rows at the top
// of a CSV file that BigQuery will skip when reading the data.
"skip_leading_rows": {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Can we explicitly default to 0 as per the docs safely?

Choose a reason for hiding this comment

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

google-beta/resource_bigquery_table.go Show resolved Hide resolved
google-beta/resource_bigquery_table.go Show resolved Hide resolved
google-beta/resource_bigquery_table.go Show resolved Hide resolved
google-beta/resource_bigquery_table.go Show resolved Hide resolved
google-beta/resource_bigquery_table.go Show resolved Hide resolved
google-beta/resource_bigquery_table.go Outdated Show resolved Hide resolved
@rickard-von-essen
Copy link

I'll go through all the defaults and see what happens if I set those.

@rickard-von-essen
Copy link

rickard-von-essen commented May 17, 2019

Just want to say that I'm working on this but found an issue with schema that I'm trying to resolve.

Resolved in GoogleCloudPlatform/magic-modules@d5e59f3

@rileykarson rileykarson merged commit 854eb33 into hashicorp:master Jul 3, 2019
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.

4 participants