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]: Invalid JSON string in nested fields - MongoDB ➡️ BigQuery batch #1231

Open
eliaaslindblad opened this issue Dec 21, 2023 · 0 comments
Labels
bug Something isn't working needs triage p2

Comments

@eliaaslindblad
Copy link

Related Template(s)

MongoDB to BigQuery Batch Job

What happened?

Steps to reproduce:

Create a job with userOption set to FLATTEN and the data should include a nested object or array.

Example:

{
  "someData": "something",
  "nestedField": [
    {
      "id": "x",
      "title": "y",
      "type": "z",
      "isGlobal": false,
      "embeddedUrl": ""
    }
  ]
}

Expected result:

The documentation states that the nested field should become a JSON string in BigQuery.

Actual result:

Instead of a JSON string the data is in the format below that I don't know how to parse in BigQuery.

[Document{{id=x, title=y, type=z, isGlobal=false, embeddedUrl=}}]

Beam Version

Newer than 2.46.0

Relevant log output

No response

@eliaaslindblad eliaaslindblad added bug Something isn't working needs triage p2 labels Dec 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working needs triage p2
Projects
None yet
Development

No branches or pull requests

1 participant