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

flink-table KafkaJsonTableSource example doesn't work

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Invalid
    • 1.3.0
    • None
    • None

    Description

      The code example uses

      TypeInformation<Row> typeInfo = Types.ROW(
        new String[] { "id", "name", "score" },
        new TypeInformation<?>[] { Types.INT(), Types.STRING(), Types.DOUBLE() }
      );
      

      the correct way of using it is something like

      TypeInformation<Row> typeInfo = Types.ROW_NAMED(
                      new String[] { "id", "zip", "date" },
                      Types.LONG, Types.INT, Types.SQL_DATE);
      

      Attachments

        Issue Links

          Activity

            People

              wheat9 Haohui Mai
              rmetzger Robert Metzger
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: