rangareddy commented on issue #14443:
URL: https://github.com/apache/hudi/issues/14443#issuecomment-4902420831

   **Sample Reproducible code:**
   
   ```scala
   import org.apache.avro.Schema
   // target schema: payload declared as a plain STRING
   val schema = new Schema.Parser().parse(
     """{"type":"record","name":"Event","fields":[
          {"name":"id","type":"string"},
          {"name":"payload","type":"string"}]}""")
   // source record: payload's value is a JSON object
   val json = """{"id":"1","payload":{"a":1,"b":"x","nested":{"k":"v"}}}"""
   val rec  = new org.apache.hudi.avro.MercifulJsonConverter().convert(json, 
schema)
   println("OUTPUT_payload = " + rec.get("payload"))
   ```
   
   **Hudi 0.15.0 Output:**
   
   `OUTPUT_payload = {a=1, b=x, nested={k=v}}`
   
   **Hudi 1.0.2 Output:**
   
   `OUTPUT_payload = {"a":1,"b":"x","nested":{"k":"v"}}`


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

Reply via email to