[
https://issues.apache.org/jira/browse/CALCITE-3082?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Laurent Goujon updated CALCITE-3082:
------------------------------------
Description:
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.
was:{{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.
> 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
> Time Spent: 10m
> 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)