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

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

                Author: ASF GitHub Bot
            Created on: 30/May/18 17:52
            Start Date: 30/May/18 17:52
    Worklog Time Spent: 10m 
      Work Description: akedin commented on a change in pull request #5497: 
[BEAM-4082] Migrate from builders in RowSqlTypes to just using Schema builder 
directly
URL: https://github.com/apache/beam/pull/5497#discussion_r191861742
 
 

 ##########
 File path: 
sdks/java/extensions/sql/src/main/java/org/apache/beam/sdk/extensions/sql/impl/utils/CalciteUtils.java
 ##########
 @@ -67,6 +67,21 @@
   private static final BiMap<SqlTypeName, FieldType> 
CALCITE_TO_BEAM_TYPE_MAPPING =
       BEAM_TO_CALCITE_TYPE_MAPPING.inverse();
 
+  // The list of field type names used in SQL as Beam field types.
+  public static final FieldType TINY_INT = toFieldType(SqlTypeName.TINYINT);
+  public static final FieldType SMALL_INT = toFieldType(SqlTypeName.SMALLINT);
+  public static final FieldType INTEGER = toFieldType(SqlTypeName.INTEGER);
+  public static final FieldType BIG_INT = toFieldType(SqlTypeName.BIGINT);
+  public static final FieldType FLOAT = toFieldType(SqlTypeName.FLOAT);
+  public static final FieldType DOUBLE = toFieldType(SqlTypeName.DOUBLE);
+  public static final FieldType DECIMAL = toFieldType(SqlTypeName.DECIMAL);
+  public static final FieldType BOOLEAN = toFieldType(SqlTypeName.BOOLEAN);
+  public static final FieldType CHAR = toFieldType(SqlTypeName.CHAR);
+  public static final FieldType VARCHAR = toFieldType(SqlTypeName.VARCHAR);
 
 Review comment:
   Or when creating a schema and then using different types in the queries

----------------------------------------------------------------
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: 107272)
    Time Spent: 50m  (was: 40m)

> remove RowSqlTypeBuilder
> ------------------------
>
>                 Key: BEAM-4082
>                 URL: https://issues.apache.org/jira/browse/BEAM-4082
>             Project: Beam
>          Issue Type: Sub-task
>          Components: sdk-java-core
>            Reporter: Kenneth Knowles
>            Assignee: Kenneth Knowles
>            Priority: Major
>          Time Spent: 50m
>  Remaining Estimate: 0h
>
> Quoting the PR, this should be removed.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to