[ 
https://issues.apache.org/jira/browse/BEAM-4542?focusedWorklogId=147172&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-147172
 ]

ASF GitHub Bot logged work on BEAM-4542:
----------------------------------------

                Author: ASF GitHub Bot
            Created on: 24/Sep/18 15:41
            Start Date: 24/Sep/18 15:41
    Worklog Time Spent: 10m 
      Work Description: athuras closed pull request #5606: [BEAM-4542] Make 
BigQueryAvroUtils public.
URL: https://github.com/apache/beam/pull/5606
 
 
   

This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:

As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):

diff --git 
a/sdks/java/io/google-cloud-platform/src/main/java/org/apache/beam/sdk/io/gcp/bigquery/BigQueryAvroUtils.java
 
b/sdks/java/io/google-cloud-platform/src/main/java/org/apache/beam/sdk/io/gcp/bigquery/BigQueryAvroUtils.java
index dcde4c744e4..96d77566d07 100644
--- 
a/sdks/java/io/google-cloud-platform/src/main/java/org/apache/beam/sdk/io/gcp/bigquery/BigQueryAvroUtils.java
+++ 
b/sdks/java/io/google-cloud-platform/src/main/java/org/apache/beam/sdk/io/gcp/bigquery/BigQueryAvroUtils.java
@@ -45,7 +45,7 @@
  * <p>These utilities are based on the <a
  * href="https://avro.apache.org/docs/1.8.1/spec.html";>Avro 1.8.1</a> 
specification.
  */
-class BigQueryAvroUtils {
+public class BigQueryAvroUtils {
 
   public static final ImmutableMap<String, Type> BIG_QUERY_TO_AVRO_TYPES =
       ImmutableMap.<String, Type>builder()


 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on 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: 147172)
    Time Spent: 1h 10m  (was: 1h)

> 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
>          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)

Reply via email to