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

Beam JIRA Bot commented on BEAM-8888:
-------------------------------------

This issue is P2 but has been unassigned without any comment for 60 days so it 
has been labeled "stale-P2". If this issue is still affecting you, we care! 
Please comment and remove the label. Otherwise, in 14 days the issue will be 
moved to P3.

Please see https://beam.apache.org/contribute/jira-priorities/ for a detailed 
explanation of what these priorities mean.


> 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
>            Priority: P2
>              Labels: stale-P2
>
> 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