[
https://issues.apache.org/jira/browse/BEAM-2879?focusedWorklogId=323868&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-323868
]
ASF GitHub Bot logged work on BEAM-2879:
----------------------------------------
Author: ASF GitHub Bot
Created on: 05/Oct/19 04:02
Start Date: 05/Oct/19 04:02
Worklog Time Spent: 10m
Work Description: pabloem commented on issue #9665: [BEAM-2879] Support
writing data to BigQuery via avro
URL: https://github.com/apache/beam/pull/9665#issuecomment-538613986
This is just a brain dump of what I'm thinking...
I wonder whether we need the `AvroWriteRequest`, and the Avro schema. I
guess we do, as the `InputElement` (whatever it is) + the Avro schema are all
one needs to build the `GenericRecord`. Having the `AvroWriteRequest` may help
make the formatting function as concise as possible....
As for supporting Beam schemas + avro files, one could have a
`useBeamSchemaForAvroFiles()`... though it's a little strange....
Another option is to have `useBeamSchema`, and a pre-coded avro formatting
function called something like ... `BigQueryIOUtils.beamRowToAvroRecord()`.
Though this is a little awkward too.
---
Overall, I like using `AvroWriteRequest` as input for the avro format
function... and for supporting Beam schemas, it may be that
`useBeamSchemaForAvroFiles` (or some better name) is the more reasonable
options.
WDYT?
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
Issue Time Tracking
-------------------
Worklog Id: (was: 323868)
Time Spent: 0.5h (was: 20m)
> Implement and use an Avro coder rather than the JSON one for intermediary
> files to be loaded in BigQuery
> --------------------------------------------------------------------------------------------------------
>
> Key: BEAM-2879
> URL: https://issues.apache.org/jira/browse/BEAM-2879
> Project: Beam
> Issue Type: Improvement
> Components: io-java-gcp
> Reporter: Black Phoenix
> Assignee: Steve Niemitz
> Priority: Minor
> Labels: starter
> Time Spent: 0.5h
> Remaining Estimate: 0h
>
> Before being loaded in BigQuery, temporary files are created and encoded in
> JSON. Which is a costly solution compared to an Avro alternative
--
This message was sent by Atlassian Jira
(v8.3.4#803005)