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

BigQuery: cast tuple definition into array of strings #48

Open
chuwy opened this issue Nov 22, 2019 · 0 comments
Open

BigQuery: cast tuple definition into array of strings #48

chuwy opened this issue Nov 22, 2019 · 0 comments

Comments

@chuwy
Copy link
Contributor

chuwy commented Nov 22, 2019

With the tuple definition:

{
  "type": "array",
  "items": [
    {"type": "string"},
    {"type": "integer"}
  ]
}

We cannot know upfront what elements the array will contain, they can be mixed. Right now we cast the whole array into a string, but we can safely assume that even with undefined schema for 2+ elements - we can safely cast it to Array[String] rather than simple String.

@chuwy chuwy added this to the Version 0.13.0 milestone Oct 24, 2020
@chuwy chuwy removed this from the Version 0.13.0 milestone Aug 2, 2021
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

No branches or pull requests

1 participant