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

Add possibility to get column names

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 1.3.0
    • Table SQL / API

    Description

      For debugging and maybe for visualization in future (e.g. in a shell) it would be good to have the possibilty to get the names of Table columns. At the moment the user has no idea how the table columns are named; if they need to be matched with POJO fields for example.

      My suggestion:

      Schema s = table.schema();
      TypeInformation<?> type = s.getType(1);
      TypeInformation<?> type = s.getType("col");
      String s = s.getColumnName(1);
      String[] s = s.getColumnNames();
      

      Attachments

        Issue Links

          Activity

            People

              jark Jark Wu
              twalthr Timo Walther
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: