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

Scala example for toDataStream does not compile

    XMLWordPrintableJSON

Details

    Description

      The scala example at https://ci.apache.org/projects/flink/flink-docs-release-1.13/docs/dev/table/data_stream_api/#examples-for-todatastream does not compile – User.class should be classOf[User].

      It would also be better to show the table DDL as

      tableEnv.executeSql(
        """
        CREATE TABLE GeneratedTable (
          name STRING,
          score INT,
          event_time TIMESTAMP_LTZ(3),
          WATERMARK FOR event_time AS event_time - INTERVAL '10' SECOND
        )
        WITH ('connector'='datagen')
        """
      )

      Attachments

        Activity

          People

            twalthr Timo Walther
            alpinegizmo David Anderson
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: