zuoyebushiwo commented on issue #2377:
URL: https://github.com/apache/hudi/issues/2377#issuecomment-752013512
> Looks like the flink streamer doesn't support the hive sync tool yet.
**is mean hive can not correct query upset hudi dataset?**
but spark is ok.
import org.apache.hudi.QuickstartUtils._
import scala.collection.JavaConversions._
import org.apache.spark.sql.SaveMode._
import org.apache.hudi.DataSourceReadOptions._
import org.apache.hudi.DataSourceWriteOptions._
import org.apache.hudi.config.HoodieWriteConfig._
val tableName = "hudi_on_flink_local_9"
val basePath = "hdfs://HDFSCluster/hudi/test/data/hudi_on_flink_local_9"
val roViewDF = spark.read.format("org.apache.hudi").load(basePath +
"/*/*/*/*")
roViewDF.registerTempTable("hudi_ro_table")
spark.sql("select * from hudi_ro_table ").show()
spark query latest one data with primary key。
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]