{"id":16194819,"url":"https://github.com/fqaiser94/reproduce-bigquery-json-stream-writer-issue","last_synced_at":"2025-04-07T15:51:18.114Z","repository":{"id":198595918,"uuid":"701124208","full_name":"fqaiser94/reproduce-bigquery-json-stream-writer-issue","owner":"fqaiser94","description":null,"archived":false,"fork":false,"pushed_at":"2023-10-06T03:05:44.000Z","size":5,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-13T18:25:01.396Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/fqaiser94.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-10-06T01:12:30.000Z","updated_at":"2023-10-06T01:13:00.000Z","dependencies_parsed_at":null,"dependency_job_id":"764bb428-5166-4031-b6e7-487cbdf8abe8","html_url":"https://github.com/fqaiser94/reproduce-bigquery-json-stream-writer-issue","commit_stats":{"total_commits":3,"total_committers":1,"mean_commits":3.0,"dds":0.0,"last_synced_commit":"d4e60a3a045aa516e96dd4a64eddb09538a0aa70"},"previous_names":["fqaiser94/reproduce-bigquery-json-stream-writer-issue"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fqaiser94%2Freproduce-bigquery-json-stream-writer-issue","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fqaiser94%2Freproduce-bigquery-json-stream-writer-issue/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fqaiser94%2Freproduce-bigquery-json-stream-writer-issue/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fqaiser94%2Freproduce-bigquery-json-stream-writer-issue/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fqaiser94","download_url":"https://codeload.github.com/fqaiser94/reproduce-bigquery-json-stream-writer-issue/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247684692,"owners_count":20979077,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-10T08:25:05.315Z","updated_at":"2025-04-07T15:51:18.091Z","avatar_url":"https://github.com/fqaiser94.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"This repo reproduces the issue I'm facing where I can't write rows to BigQuery\nthat are missing fields that have a Default Value Expression defined in the TableSchema\neven though I think I have correctly configured the StreamWriter using the newly released\n`.setDefaultMissingValueInterpretation(AppendRowsRequest.MissingValueInterpretation.DEFAULT_VALUE)` option. \n\nYou can execute the program by running:  \n\n```bash\nmvn clean package\n\nexport REPRODUCE_ISSUE_PROJECT_ID=xxx\nexport REPRODUCE_ISSUE_DATASET_ID=xxx\nexport REPRODUCE_ISSUE_TABLE_ID=xxx\n\njava -cp target/reproduce-issue-1.0-SNAPSHOT.jar com.fq.ReproduceIssue\n```\n\nExample output:\n```\nOct. 05, 2023 9:49:42 P.M. com.google.cloud.bigquery.storage.v1.ConnectionWorker resetConnection\nINFO: Start connecting stream: projects/flink-bq-writer/datasets/temp/tables/temp3/streams/_default id: 7fe0c63f-b58a-4875-93ba-9e7b1ff27567\nOct. 05, 2023 9:49:42 P.M. com.google.cloud.bigquery.storage.v1.ConnectionWorker resetConnection\nINFO: Finish connecting stream: projects/flink-bq-writer/datasets/temp/tables/temp3/streams/_default id: 7fe0c63f-b58a-4875-93ba-9e7b1ff27567\nException in thread \"main\" com.google.cloud.bigquery.storage.v1.Exceptions$AppendSerializationError: INVALID_ARGUMENT: Append serialization failed for writer: projects/flink-bq-writer/datasets/temp/tables/temp3/streams/_default\n\tat com.google.cloud.bigquery.storage.v1.SchemaAwareStreamWriter.append(SchemaAwareStreamWriter.java:210)\n\tat com.google.cloud.bigquery.storage.v1.SchemaAwareStreamWriter.append(SchemaAwareStreamWriter.java:123)\n\tat com.google.cloud.bigquery.storage.v1.JsonStreamWriter.append(JsonStreamWriter.java:62)\n\tat com.fq.ReproduceIssue.main(ReproduceIssue.java:97)\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffqaiser94%2Freproduce-bigquery-json-stream-writer-issue","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffqaiser94%2Freproduce-bigquery-json-stream-writer-issue","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffqaiser94%2Freproduce-bigquery-json-stream-writer-issue/lists"}