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

Table examples broken

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.4.0
    • 1.4.0
    • Examples, Table SQL / API
    • None

    Description

      When running the examples you get this exception:

      Caused by: org.apache.flink.table.api.TableException: Class 'class org.apache.flink.table.examples.java.WordCountSQL$WC' described in type information 'GenericType<org.apache.flink.table.examples.java.WordCountSQL.WC>' must be static and globally accessible.
              at org.apache.flink.table.api.TableException$.apply(exceptions.scala:53)
              at org.apache.flink.table.api.TableEnvironment$.validateType(TableEnvironment.scala:936)
              at org.apache.flink.table.api.TableEnvironment.getFieldInfo(TableEnvironment.scala:616)
              at org.apache.flink.table.api.BatchTableEnvironment.registerDataSetInternal(BatchTableEnvironment.scala:248)
              at org.apache.flink.table.api.java.BatchTableEnvironment.registerDataSet(BatchTableEnvironment.scala:129)
              at org.apache.flink.table.examples.java.WordCountSQL.main(WordCountSQL.java:53)
              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
              at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
              at java.lang.reflect.Method.invoke(Unknown Source)
              at org.apache.flink.client.program.PackagedProgram.callMainMethod(PackagedProgram.java:525)
              ... 13 more
      

      Attachments

        Issue Links

          Activity

            People

              chesnay Chesnay Schepler
              chesnay Chesnay Schepler
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: