hive-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Adam Kramer (JIRA)" <>
Subject [jira] Commented: (HIVE-1490) More implicit type conversion: UNION ALL and COALESCE
Date Thu, 03 Mar 2011 07:52:37 GMT


Adam Kramer commented on HIVE-1490:

Also present in CASE statements:

FAILED: Error in semantic analysis: line 37:57 Argument Type Mismatch '$.foo': The expressions
after THEN should have the same type: "int" is expected but "string" is found

> More implicit type conversion: UNION ALL and COALESCE
> -----------------------------------------------------
>                 Key: HIVE-1490
>                 URL:
>             Project: Hive
>          Issue Type: Bug
>          Components: Query Processor, Server Infrastructure
>            Reporter: Adam Kramer
> This is a usecase that frequently annoys me:
> USING 'script'
> AS thing1, thing2
> FROM some_table
> SELECT a.thing1, a.thing2
> FROM some_other_table a
> ...this fails when a.thing1 and a.thing2 are anything but STRING, because all output
> In this case, a.thing1 and a.thing2 should be implicitly converted to string.
> COALESCE(a.thing1, a.thing2, a.thing3) should similarly do implicit type conversion among
the arguments. If two are INT and one is BIGINT, upgrade the INTs, etc.
> At the very least, it would be nice to have syntax like
> USING 'script'
> AS thing1 INT, thing2 INT
> ...which would effectively cast the output column to the specified type. But really,
type conversion should work.

This message is automatically generated by JIRA.
For more information on JIRA, see:


View raw message