Uploaded image for project: 'Flink'
  1. Flink
  2. FLINK-33163 Support Java 21 (LTS)
  3. FLINK-33333

TableSinkJsonPlanTest fails as JsonParseException: Unexpected character ('"' (code 34)): was expecting comma

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Closed
    • Major
    • Resolution: Won't Fix
    • None
    • None
    • Table SQL / Planner
    • None

    Description

      org.apache.flink.table.planner.plan.nodes.exec.stream.TableSinkJsonPlanTest#testCdcWithNonDeterministicFuncSinkWithDifferentPk fails as

      org.apache.flink.shaded.jackson2.com.fasterxml.jackson.core.JsonParseException: Unexpected character ('"' (code 34)): was expecting comma to separate Object entries
       at [Source: (String)"{
        "flinkVersion" : "",
        "nodes" : [ {
          "id" : 1,
          "type" : "stream-exec-table-source-scan_1",
          "scanTableSource" : {
            "table" : {
              "identifier" : "`default_catalog`.`default_database`.`users`",
              "resolvedTable" : {
                "schema" : {
                  "columns" : [ {
                    "name" : "user_id",
                    "dataType" : "VARCHAR(2147483647) NOT NULL"
                  }, {
                    "name" : "user_name",
                    "dataType" : "VARCHAR(2147483647)"
               "[truncated 4287 chars]; line: 34, column: 14]
      
      	at org.apache.flink.shaded.jackson2.com.fasterxml.jackson.core.JsonParser._constructError(JsonParser.java:2418)
      	at org.apache.flink.shaded.jackson2.com.fasterxml.jackson.core.base.ParserMinimalBase._reportError(ParserMinimalBase.java:749)
      	at org.apache.flink.shaded.jackson2.com.fasterxml.jackson.core.base.ParserMinimalBase._reportUnexpectedChar(ParserMinimalBase.java:673)
      	at org.apache.flink.shaded.jackson2.com.fasterxml.jackson.core.json.ReaderBasedJsonParser._skipComma(ReaderBasedJsonParser.java:2459)
      	at org.apache.flink.shaded.jackson2.com.fasterxml.jackson.core.json.ReaderBasedJsonParser.nextFieldName(ReaderBasedJsonParser.java:950)
      	at org.apache.flink.shaded.jackson2.com.fasterxml.jackson.databind.deser.std.BaseNodeDeserializer._deserializeContainerNoRecursion(JsonNodeDeserializer.java:537)
      	at org.apache.flink.shaded.jackson2.com.fasterxml.jackson.databind.deser.std.JsonNodeDeserializer.deserialize(JsonNodeDeserializer.java:98)
      	at org.apache.flink.shaded.jackson2.com.fasterxml.jackson.databind.deser.std.JsonNodeDeserializer.deserialize(JsonNodeDeserializer.java:23)
      	at org.apache.flink.shaded.jackson2.com.fasterxml.jackson.databind.deser.DefaultDeserializationContext.readRootValue(DefaultDeserializationContext.java:323)
      	at org.apache.flink.shaded.jackson2.com.fasterxml.jackson.databind.ObjectMapper._readValue(ObjectMapper.java:4706)
      	at org.apache.flink.shaded.jackson2.com.fasterxml.jackson.databind.ObjectMapper.readTree(ObjectMapper.java:2989)
      	at org.apache.flink.shaded.jackson2.com.fasterxml.jackson.core.JsonParser.readValueAsTree(JsonParser.java:2392)
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            Sergey Nuyanzin Sergey Nuyanzin
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: