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

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

                Author: ASF GitHub Bot
            Created on: 08/May/21 00:24
            Start Date: 08/May/21 00:24
    Worklog Time Spent: 10m 
      Work Description: ibzib merged pull request #14761:
URL: https://github.com/apache/beam/pull/14761


   


-- 
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:
us...@infra.apache.org


Issue Time Tracking
-------------------

    Worklog Id:     (was: 593596)
    Time Spent: 20m  (was: 10m)

> BeamSQL does not support LogicalType
> ------------------------------------
>
>                 Key: BEAM-8888
>                 URL: https://issues.apache.org/jira/browse/BEAM-8888
>             Project: Beam
>          Issue Type: Improvement
>          Components: dsl-sql
>            Reporter: Julien Tournay
>            Assignee: Robin Qiu
>            Priority: P3
>             Fix For: 2.22.0
>
>          Time Spent: 20m
>  Remaining Estimate: 0h
>
> When running a BeamSQL query in a row with a Schema that contains a logical 
> type a NPE is thrown with the following cause:
> {{}}{{ Cause: java.lang.NullPointerException:}}
>  {{[info] at 
> org.apache.beam.repackaged.sql.org.apache.calcite.sql.type.SqlTypeFactoryImpl.createSqlType(SqlTypeFactoryImpl.java:45)}}
>  {{[info] at 
> org.apache.beam.sdk.extensions.sql.impl.utils.CalciteUtils.toRelDataType(CalciteUtils.java:278)}}
>  {{[info] at 
> org.apache.beam.sdk.extensions.sql.impl.utils.CalciteUtils.toRelDataType(CalciteUtils.java:285)}}
>  {{[info] at 
> org.apache.beam.sdk.extensions.sql.impl.utils.CalciteUtils.lambda$toCalciteRowType$0(CalciteUtils.java:260)}}
>  {{[info] at 
> java.util.stream.Streams$RangeIntSpliterator.forEachRemaining(Streams.java:110)}}
>   
> This is because {{CalciteUtils.toSqlTypeName}} returns null in the general 
> case if the type is Logical.
>  
>  



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

Reply via email to