Uploaded image for project: 'Kudu'
  1. Kudu
  2. KUDU-2575

kudu query return wrong results

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Duplicate
    • 1.6.0
    • n/a
    • impala
    • None

    Description

      impala> CREATE TABLE test1( name string, description string, xtype int, PRIMARY KEY(name) ) STORED AS kudu;

      impala> insert into `test1` (`name`,`description`,`xtype`) values ("t1:a\"'x
      bbx", 'aaa', 1),("t2:a\"'x
      bbx", 'bbb', 1),("t3:a\"'x
      bbx", 'ccc', 1);

      impala> select name,description from test1 where name="t1:a\"'x
      bbx";
      Fetched 0 row(s) in 0.16s

      impala> select name,description from test1 where name in ("t1:a\"'x
      bbx");
      Fetched 0 row(s) in 0.05s

      impala> select name,description from test1 where name like "t1:a\"'x
      bbx";
      ------------------------+

      name description

      ------------------------+

      t1:a"'x\bbx aaa

      ------------------------+
      Fetched 1 row(s) in 0.16s

      impala> select name,description from test1 where name in (select "t1:a\"'x
      bbx");
      ------------------------+

      name description

      ------------------------+

      t1:a"'x\bbx aaa

      ------------------------+
      Fetched 1 row(s) in 0.36s

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              tivon08 jim zh
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: