Uploaded image for project: 'IMPALA'
  1. IMPALA
  2. IMPALA-12990

impala-shell broken if Iceberg delete deletes 0 rows

    XMLWordPrintableJSON

Details

    • Bug
    • Status: In Progress
    • Major
    • Resolution: Unresolved
    • None
    • None
    • Clients
    • ghx-label-14

    Description

      Happens only with Python 3

      impala-python3 shell/impala_shell.py
      
      create table icebergupdatet (i int, s string) stored as iceberg;
      alter table icebergupdatet set tblproperties("format-version"="2");
      delete from icebergupdatet where i=0;
      Unknown Exception : '>' not supported between instances of 'NoneType' and 'int'
      Traceback (most recent call last):
        File "shell/impala_shell.py", line 1428, in _execute_stmt
          if is_dml and num_rows == 0 and num_deleted_rows > 0:
      TypeError: '>' not supported between instances of 'NoneType' and 'int'
      

      The same erros should also happen when the delete removes > 0 rows, but the impala server has an older version that doesn't set TDmlResult.rows_deleted

      Attachments

        Issue Links

          Activity

            People

              csringhofer Csaba Ringhofer
              csringhofer Csaba Ringhofer
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated: