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

Table API Schema "from" not working

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Won't Fix
    • 1.10.0
    • None
    • Table SQL / API

    Description

      The method 'from' of org.apache.flink.table.descriptors.Schema do not work for me.

      Maybe I miss something.

      Code:

      .withFormat(new Json()
           .failOnMissingField(false))
      .withSchema(new Schema()
           .field("user_server", DataTypes.STRING()).from("user"))

      Result

      The field 'user_server' has the value 'null'.

      Error:

      No Error.

      Workaround:

      This code works!

      .withFormat(new Json()
           .failOnMissingField(false))
      .withSchema(new Schema()
           .field("user", DataTypes.STRING())

       

      From the

      Attachments

        Activity

          People

            Unassigned Unassigned
            Wichtlein Rafael Wicht
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: