[ 
https://issues.apache.org/jira/browse/CALCITE-3082?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Laurent Goujon resolved CALCITE-3082.
-------------------------------------
       Resolution: Fixed
    Fix Version/s: 1.20.0

Fixed in 
https://github.com/apache/calcite/commit/d8768f9c07fa3927475902e27c13c8bc39687897

> NPE in SqlUtil#getSelectListItem
> --------------------------------
>
>                 Key: CALCITE-3082
>                 URL: https://issues.apache.org/jira/browse/CALCITE-3082
>             Project: Calcite
>          Issue Type: Bug
>          Components: core
>            Reporter: Laurent Goujon
>            Assignee: Laurent Goujon
>            Priority: Major
>              Labels: pull-request-available
>             Fix For: 1.20.0
>
>          Time Spent: 40m
>  Remaining Estimate: 0h
>
> Queries similar to {{SELECT 1 UNION SELECT 2, 3}} causes validator to throws 
> a {{NullPointerException}} instance instead of a proper error message about 
> the column count mismatch.
> {{SqlUtil#getSelectListItem}} is used by Set operators to get select items if 
> the types of operands don't match. Unfortunately the method may throw an NPE 
> exception if one of the operand doesn't have a FROM clause.



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

Reply via email to