Uploaded image for project: 'Apache Hudi'
  1. Apache Hudi
  2. HUDI-7135

Spark reads hudi table error when flink creates the table without preCombine fields by catalog or factory

    XMLWordPrintableJSON

Details

    Description

      Create a table through dfs catalog, hms catalog, or sink ddl, and then query the data of the table through spark, and an exception occurs:
      Java. util. NoSuchElementException: key not found: ts

      demo:
      1. create a table through hms catalog:

      hms catalog create table

      CREATE CATALOG hudi_catalog WITH(
      'type' = 'hudi',
      'mode' = 'hms'
      );

      CREATE TABLE hudi_catalog.`default`.ct1
      (
      f1 string,
      f2 string
      ) WITH (
      'connector' = 'hudi',
      'path' = 'file:///Users/x/x/others/data/hudi-warehouse/ct1',
      'table.type' = 'COPY_ON_WRITE',
      'write.operation' = 'insert'
      );

      2. spark query

      spark query

      select * from ct1

      3. exception

      exception

      java.util.NoSuchElementException: key not found: ts

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              empcl 陈磊
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: