RustedBones commented on code in PR #33422:
URL: https://github.com/apache/beam/pull/33422#discussion_r1930247482


##########
sdks/java/io/google-cloud-platform/src/main/java/org/apache/beam/sdk/io/gcp/bigquery/AvroGenericRecordToStorageApiProto.java:
##########
@@ -69,11 +71,15 @@ public class AvroGenericRecordToStorageApiProto {
   // A map of supported logical types to the protobuf field type.
   static final Map<String, TableFieldSchema.Type> LOGICAL_TYPES =
       ImmutableMap.<String, TableFieldSchema.Type>builder()
-          .put(LogicalTypes.date().getName(), TableFieldSchema.Type.DATE)
-          .put(LogicalTypes.decimal(1).getName(), 
TableFieldSchema.Type.BIGNUMERIC)
-          .put(LogicalTypes.timestampMicros().getName(), 
TableFieldSchema.Type.TIMESTAMP)
-          .put(LogicalTypes.timestampMillis().getName(), 
TableFieldSchema.Type.TIMESTAMP)
-          .put(LogicalTypes.uuid().getName(), TableFieldSchema.Type.STRING)
+          .put("date", TableFieldSchema.Type.DATE)

Review Comment:
   This code has been refactored to accomodate conversion from avro `decimal` 
type to BQ `NUMERIC/BIGNUMERIC`



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

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to