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

Kudu tables missing comment field if HMS-Kudu integration is enabled

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • Impala 4.2.0, Impala 4.1.1
    • None
    • None

    Description

      Reproduction:
      Restart kudu with HMS integration enabled

      export IMPALA_KUDU_STARTUP_FLAGS=-hive_metastore_uris=thrift://localhost
      testdata/cluster/admin restart kudu

      create table kudu_test (
      col1 string comment 'col1',
      col2 string comment 'col2',
      primary key (col1)
      )
      comment 'kudu_test_comment'
      stored as kudu;

      describe formatted kudu_test;
      ...

        comment  

      ...

      Proposed solution:

      customer found it seems due to there's setComment is missing
      https://github.com/apache/impala/blob/master/fe/src/main/java/org/apache/impala/service/KuduCatalogOpExecutor.java#L258

      // Set the table's owner.
      tableOpts.setOwner(msTbl.getOwner());
      // adding line
      tableOpts.setComment(params.getComment());

      Attachments

        Activity

          People

            gfurnstahl Gergely Fürnstáhl
            gfurnstahl Gergely Fürnstáhl
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: