Zoltán Borók-Nagy created IMPALA-15642:
------------------------------------------

             Summary: Kudu predicate push down unescapes constant folded string 
literals again
                 Key: IMPALA-15642
                 URL: https://issues.apache.org/jira/browse/IMPALA-15642
             Project: IMPALA
          Issue Type: Bug
          Components: Frontend
            Reporter: Zoltán Borók-Nagy


Same as IMPALA-15633 for Kudu: KuduScanNode gets the value of string literals 
with {{StringLiteral.getUnescapedValue()}}, which unescapes literals created by 
constant folding again.

{code:sql}
create table k (id int primary key, s string)
partition by hash (id) partitions 2 stored as kudu;
insert into k values (1, concat('a', chr(92), 'b'));
select count(*) from k where s = concat('a', chr(92), 'b');          -- 0, 
expected 1
select count(*) from k where s in (concat('a', chr(92), 'b'), 'x');   -- 0, 
expected 1
{code}

HBaseScanNode and DataSourceScanNode also call {{getUnescapedValue()}}, but I 
haven't verified whether they are affected.



--
This message was sent by Atlassian Jira
(v10.3.26#10030026)

Reply via email to