Uploaded image for project: 'Kylin'
  1. Kylin
  2. KYLIN-3145

Support Kafka JSON message whose property name includes "_"

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • v2.3.0
    • NRT Streaming
    • None

    Description

      So far Kylin doesn't support JSON message which has property name with "_", because that would be conflict with Kylin's logic.

      For example, the JSON message is :

      { 
       "user" : {
        "first_name" : "Tom",
        "age" : "20"
        }
      
      }
      

      When map this topic to a table, the "first_name" is mapped to "user_first_name"; When Kylin parse the message, it separates by "_" and then try to find "user" -> "first" -> "name"; as there is no "first" property, an error is reported.

      Attachments

        Activity

          People

            shaofengshi Shao Feng Shi
            shaofengshi Shao Feng Shi
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: