[
https://issues.apache.org/jira/browse/BEAM-4542?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Alexander Huras closed BEAM-4542.
---------------------------------
Resolution: Won't Fix
Fix Version/s: Not applicable
As mentioned in the PR, this would increase the public API surface for minimal
benefit. Users who care can simply copy the appropriate utility methods (as I
have).
> BigQueryIO: Make BigQueryAvroUtils public
> -----------------------------------------
>
> Key: BEAM-4542
> URL: https://issues.apache.org/jira/browse/BEAM-4542
> Project: Beam
> Issue Type: Improvement
> Components: io-java-gcp
> Reporter: Alexander Huras
> Assignee: Chamikara Jayalath
> Priority: Minor
> Fix For: Not applicable
>
> Time Spent: 1h 10m
> Remaining Estimate: 0h
>
> BigQueryAvroUtils has a super useful static method for mapping GenericRecords
> to TableRows (when their schemas conform etc.). This seems to be something
> people are doing all over the place; and for my own project I've just
> copy-pasted the entire class into a submodule (which feels wrong...).
> In my project I have a bunch of avro records that I'd like to write to BQ.
> BigQueryIO.Write only accepts `TableRows` (as far as I can tell), thus my
> dilemma.
> I'll have a one-liner PR to accompany this if people care enough.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)