You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hudi.apache.org by "zhaoyangming (Jira)" <ji...@apache.org> on 2022/10/14 01:28:00 UTC

[jira] [Created] (HUDI-5026) Base file format is not currently supported (ORC)

zhaoyangming created HUDI-5026:
----------------------------------

             Summary: Base file format is not currently supported (ORC)
                 Key: HUDI-5026
                 URL: https://issues.apache.org/jira/browse/HUDI-5026
             Project: Apache Hudi
          Issue Type: Bug
            Reporter: zhaoyangming


./bin/spark-sql --packages org.apache.hudi:hudi-spark3.3-bundle_2.12:0.12.0  --conf 'spark.serializer=org.apache.spark.serializer.KryoSerializer' --conf 'spark.sql.extensions=org.apache.spark.sql.hudi.HoodieSparkSessionExtension' --conf 'spark.sql.catalog.spark_catalog=org.apache.spark.sql.hudi.catalog.HoodieCatalog'

create table hudi_mor_tbl (
  id int,
  name string,
  price double,
  ts bigint
) using hudi
tblproperties (
  type = 'mor',
  primaryKey = 'id',
  preCombineField = 'ts',
  'hoodie.table.base.file.format' = 'ORC'
);

insert into hudi_mor_tbl select 1, 'a1_1', 20, 1001;

select * from hudi_mor_tbl;


java.lang.UnsupportedOperationException: Base file format is not currently supported (ORC)
        at org.apache.hudi.HoodieBaseRelation.createBaseFileReader(HoodieBaseRelation.scala:577)
        at org.apache.hudi.MergeOnReadSnapshotRelation.createBaseFileReaders(MergeOnReadSnapshotRelation.scala:126)
        at org.apache.hudi.MergeOnReadSnapshotRelation.composeRDD(MergeOnReadSnapshotRelation.scala:90)



--
This message was sent by Atlassian Jira
(v8.20.10#820010)