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

node error when impala query

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.17.0
    • 1.18.0, 1.17.1
    • tserver
    • None
    • centos7.9

    Description

      Scan kudu with impala-4.3.0 ,there is a bug when reading a table with an empty string in primary key field.

      sql:
      select
          count(distinct thirdnick)
      from
          member.qyexternaluserdetailinfo_new
      where
          (
              mainshopnick = "xxx"
              and ownercorpid in ("xxx", "")
              and shoptype not in ("35", "56")
              and isDelete = 0
              and thirdnick != ""
              and thirdnick is not null
          );
       
      error:ERROR: Unable to open scanner for node with id '1' for Kudu table 'impala::member.qyexternaluserdetailinfo_new': Invalid argument: No such column: shopnick
       
      If update sql like this:
      select
          count(distinct thirdnick)
      from
          member.qyexternaluserdetailinfo_new
      where
          (
              mainshopnick = "xxx"
              and ownercorpid in ("xxx", "")
              and shopnick not in ('')
              and shoptype not in ("35", "56")
              and isDelete = 0
              and thirdnick != ""
              and thirdnick is not null
          );
      no error.
       
      this error appears in kudu-1.17.0 ,but kudu-1.16.0 is good.
       
      There is 1000000 items in this table ,280000 items where empty string.
      table schema like this:

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

      name           type       comment primary_key key_unique nullable default_value encoding       compression         block_size

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

      mainshopnick   string             true         true       false                   AUTO_ENCODING DEFAULT_COMPRESSION 0          
      shopnick       string             true         true       false                   AUTO_ENCODING DEFAULT_COMPRESSION 0          
      ownercorpid     string             true         true       false                   AUTO_ENCODING DEFAULT_COMPRESSION 0          
      shoptype       string             true         true       false                   AUTO_ENCODING DEFAULT_COMPRESSION 0          
      clientid       string             true         true       false                   AUTO_ENCODING DEFAULT_COMPRESSION 0          
      thirdnick       string             true         true       false                   AUTO_ENCODING DEFAULT_COMPRESSION 0          
      id             bigint             true         true       false                   AUTO_ENCODING DEFAULT_COMPRESSION 0          
      receivermobile string             false                   true                   AUTO_ENCODING DEFAULT_COMPRESSION 0          
      thirdrealname   string             false                   true                   AUTO_ENCODING DEFAULT_COMPRESSION 0          
      remark         string             false                   true                   AUTO_ENCODING DEFAULT_COMPRESSION 0          
      createtime     timestamp         false                   true                   AUTO_ENCODING DEFAULT_COMPRESSION 0          
      updatetime     timestamp         false                   true                   AUTO_ENCODING DEFAULT_COMPRESSION 0          
      isdelete       int               false                   true     0             AUTO_ENCODING DEFAULT_COMPRESSION 0          
      buyernick       string             false                   true                   AUTO_ENCODING DEFAULT_COMPRESSION 0          

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

      Attachments

        1. profile_error_1.17.txt
          37 kB
          Pain Sun
        2. profile_success_1.16.txt
          46 kB
          Pain Sun
        3. profile_success_1.17.txt
          45 kB
          Pain Sun

        Issue Links

          Activity

            People

              Unassigned Unassigned
              MadBeeDo Pain Sun
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: