hudi-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From GitBox <>
Subject [GitHub] [incubator-hudi] adamjoneill edited a comment on issue #1325: presto - querying nested object in parquet file created by hudi
Date Wed, 12 Feb 2020 19:18:07 GMT
adamjoneill edited a comment on issue #1325: presto - querying nested object in parquet file
created by hudi
   i've managed to narrow down the issue to the data that is coming off the kinesis stream.
   when i replace the data from the stream with some test data as follows
   with the following code:
            if (!rdd.isEmpty()){
                   val json =>new String(record))
                   val dataFrame =
           val hudiTableName = "order"
           val hudiTablePath = path + hudiTableName
           val hudiOptions = Map[String,String](
               DataSourceWriteOptions.RECORDKEY_FIELD_OPT_KEY -> "id",
               HoodieWriteConfig.TABLE_NAME -> hudiTableName, 
               DataSourceWriteOptions.OPERATION_OPT_KEY -> DataSourceWriteOptions.INSERT_OPERATION_OPT_VAL,

               DataSourceWriteOptions.PRECOMBINE_FIELD_OPT_KEY -> "id")
           // Write data into the Hudi dataset
   i replaced
        val dataFrame =
       val dataFrame = sparkContext.parallelize(Seq(Foo(1, Bar(1, "first")), Foo(2, Bar(2,
   and the `select * from table` worked as well as nested query `select id,,
from table`
   So at this stage it's looking like there's an issue with the data and how it's coming off
the kinesis stream
   I've pasted the schema from the rdd off the stream here:
   |clientId|eventId|      eventTimestamp|      id|               order|  typeOfEvent|
   |     369| 115423|2020-02-12T15:54:...|34551840|[External, [[Aust...|order-created|
   Taking the data off the stream but ignoring the nested column 'order' and the `select *
from table` query works.
   val jsonFrame =
   val dataFrame ="clientid", "eventId", "id", "typeOfEvent")
   Other than being nested, is there something about the order column that would make this

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:

With regards,
Apache Git Services

View raw message