Uploaded image for project: 'Flink'
  1. Flink
  2. FLINK-19396

Fix properties type cast error

    XMLWordPrintableJSON

Details

    Description

      Properties extends Hashtable<Object,Object> ,The key and value of the Properties class support object objects. If the user's value is a boolean type, this code "(String) k, (String) v" will occur an error.

       

       

      链接kafka失败!!!java.lang.Boolean cannot be cast to java.lang.String
      48704:java.lang.ClassCastException: java.lang.Boolean cannot be cast to java.lang.String
      48787:at org.apache.flink.table.descriptors.Kafka.lambda$properties$0(Kafka.java:99)
      48867:at java.util.Hashtable.forEach(Hashtable.java:878)
      48919:at org.apache.flink.table.descriptors.Kafka.properties(Kafka.java:99)

       

      Attachments

        Activity

          People

            Unassigned Unassigned
            zhangmeng0426 zhangmeng
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: