yuzhaojing commented on issue #6102:
URL: https://github.com/apache/hudi/issues/6102#issuecomment-1189725432
> ` System.setProperty("HADOOP_USER_NAME", "hdfs") val session: SparkSession
= SparkSession.builder() .appName(this.getClass.getName) .master("local[*]")
.config("spark.yarn.queue", "root.users.hdfs") .config("spark.serializer",
"org.apache.spark.serializer.KryoSerializer")
.config("spark.kryoserializer.buffer.max", "512m") .enableHiveSupport()
.getOrCreate() session.sparkContext.setLogLevel("ERROR") private val sourceDf:
DataFrame = session .read .format("hudi") //
.option(DataSourceReadOptions.REALTIME_MERGE.key(),REALTIME_SKIP_MERGE_OPT_VAL)
// .option(DataSourceReadOptions.QUERY_TYPE.key(),QUERY_TYPE_SNAPSHOT_OPT_VAL)
.load("/hoodie/data/ods/ods_equipment_data") sourceDf.show(1000) //
sourceDf.createTempView("tmp_water") println(sourceDf.count())`
You can try change `REALTIME_SKIP_MERGE_OPT_VAL` to
`REALTIME_PAYLOAD_COMBINE_OPT_VAL`.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]