Details
-
Bug
-
Status: Resolved
-
Blocker
-
Resolution: Fixed
-
Impala 2.0
-
None
-
None
-
commit 33754e5e7d444b2b01af0125cef8673a4ce17554
Author: Skye Wanderman-Milne <skye@cloudera.com>
Date: Mon Sep 29 17:59:09 2014 -0700
Call Function::eraseFromParent() when codegen fails
Description
I tried disabling codegen but it's the same.
Postgresql and Oracle say the first query below should evaluate to true.
[localhost.localdomain:21000] > select 'a' = cast('a' as char(2)); Query: select 'a' = cast('a' as char(2)) +----------------------------+ | 'a' = cast('a' as char(2)) | +----------------------------+ | false | +----------------------------+ Fetched 1 row(s) in 0.02s [localhost.localdomain:21000] > select 'a' = cast('a' as char(1)); Query: select 'a' = cast('a' as char(1)) +----------------------------+ | 'a' = cast('a' as char(1)) | +----------------------------+ | true | +----------------------------+ Fetched 1 row(s) in 0.01s [localhost.localdomain:21000] > select cast('a' as char(2)); Query: select cast('a' as char(2)) +----------------------+ | cast('a' as char(2)) | +----------------------+ | a | +----------------------+ Fetched 1 row(s) in 0.01s [localhost.localdomain:21000] > select length(cast('a' as char(2))); Query: select length(cast('a' as char(2))) +------------------------------+ | length(cast('a' as char(2))) | +------------------------------+ | 1 | +------------------------------+ Fetched 1 row(s) in 0.02s
Postgresql
functional=# select 'a' = cast('a' as char(2)); ?column? ---------- t (1 row)