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

[Bug]: BQ TableRow does not accept column named 'f' #33531

Open
17 tasks
RustedBones opened this issue Jan 8, 2025 · 0 comments
Open
17 tasks

[Bug]: BQ TableRow does not accept column named 'f' #33531

RustedBones opened this issue Jan 8, 2025 · 0 comments

Comments

@RustedBones
Copy link
Contributor

RustedBones commented Jan 8, 2025

What happened?

When working with a BQ table with a column named 'f', construction of a TableRow object fails with

java.lang.IllegalArgumentException: Can not set java.util.List field com.google.api.services.bigquery.model.TableRow.f to java.lang.String

This happens because TableRow is a GenericJson and has a key field named f expecting a List<TableCell>.

When reading the javadoc for TableRow, it seems to me that this model is supposed to represent a BQ resultset in the form

{
  "f": [{"v":  1}, {"v": "value"}]
}

beam abuses the GenericJson capability and relies on the unknown fields to encode the result in the form

{
   "column1": 1,
   "column2": "value"
}

Issue Priority

Priority: 2 (default / most bugs should be filed as P2)

Issue Components

  • Component: Python SDK
  • Component: Java SDK
  • Component: Go SDK
  • Component: Typescript SDK
  • Component: IO connector
  • Component: Beam YAML
  • Component: Beam examples
  • Component: Beam playground
  • Component: Beam katas
  • Component: Website
  • Component: Infrastructure
  • Component: Spark Runner
  • Component: Flink Runner
  • Component: Samza Runner
  • Component: Twister2 Runner
  • Component: Hazelcast Jet Runner
  • Component: Google Cloud Dataflow Runner
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant