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

Support Kafka JSON message whose property name includes "_"

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: v2.3.0
    • Component/s: NRT Streaming
    • Labels:
      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

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

              Dates

              • Created:
                Updated:
                Resolved: