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

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

                Author: ASF GitHub Bot
            Created on: 30/Dec/20 01:10
            Start Date: 30/Dec/20 01:10
    Worklog Time Spent: 10m 
      Work Description: TheNeuralBit commented on a change in pull request 
#13588:
URL: https://github.com/apache/beam/pull/13588#discussion_r549900879



##########
File path: 
sdks/java/extensions/sql/datacatalog/src/main/java/org/apache/beam/sdk/extensions/sql/meta/provider/datacatalog/DataCatalogTableProvider.java
##########
@@ -178,6 +214,23 @@ private Table toCalciteTable(String tableName, Entry 
entry) {
     return tableBuilder.get().schema(schema).name(tableName).build();
   }
 
+  public boolean setSchemaIfNotPresent(String resource, Schema schema) {

Review comment:
       This really shouldn't be public either, it would be best if this 
functionality was exposed through the existing public API (probably 
DataCatalogTableProvider.createTable). If you'd rather just keep this as-is for 
now, lets mark this function `@Internal` so Beam users don't expect backwards 
compatibility.

##########
File path: 
sdks/java/extensions/sql/datacatalog/src/main/java/org/apache/beam/sdk/extensions/sql/meta/provider/datacatalog/SchemaUtils.java
##########
@@ -128,18 +128,15 @@ private static ColumnSchema fromBeamField(Schema.Field 
field) {
       }
       ColumnSchema column =
           fromBeamField(Field.of(field.getName(), 
fieldType.getCollectionElementType()));
-      if (!column.getMode().isEmpty()) {

Review comment:
       This assertion could still be there and change to 
`column.getMode().equals("REQUIRED")`




----------------------------------------------------------------
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: 529339)
    Time Spent: 0.5h  (was: 20m)

> PubSub support types: TIMESTAMP, DATE, TIME, DATETIME
> -----------------------------------------------------
>
>                 Key: BEAM-11533
>                 URL: https://issues.apache.org/jira/browse/BEAM-11533
>             Project: Beam
>          Issue Type: Improvement
>          Components: dsl-sql-zetasql, io-java-gcp
>            Reporter: Robin Qiu
>            Assignee: Robin Qiu
>            Priority: P2
>          Time Spent: 0.5h
>  Remaining Estimate: 0h
>




--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to