helianthuslulu commented on issue #2238:
URL: https://github.com/apache/hudi/issues/2238#issuecomment-730760611


   I met one problem with **"_hoodie_is_deletd"**,too. and hudi version is 
0.5.2:
   **1)kafaka data sample:**
   "rowkey1","value1","value2",true
   "rowkey2","value1","value2",false
   **2)spark Dataframe schema:**
   `val structSchema: StructType = StructType(
   List(
       StructField("rowkey", StringType, true),
       StructField("rowkey", StringType, true),
       StructField("rowkey", StringType, true),
       StructField("_hoodie_is_deleted", BooleanType, true),
   )
   )`
   3)query ways:
   ①spark-shell
   ②spark-sql
   ③beeline
   ④code:
   val tripsSnapshotDF = spark.
     read.
     format("hudi").
     load(basePath + "/*/*/*/*")
   //load(basePath) use "/partitionKey=partitionValue" folder structure for 
Spark auto partition discovery
   tripsSnapshotDF.createOrReplaceTempView("hudi_trips_snapshot")
   spark.sql("select * from  hudi_trips_snapshot limit 20").show()
   **4)quey result:
   result data include lines "_hoodie_is_deleted=true"** 
   
   can you please give me some suggestion? @bvaradar 
   


----------------------------------------------------------------
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]


Reply via email to