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

Add possibility to get column names

    Details

    • Type: New Feature
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.3.0
    • Component/s: Table API & SQL
    • Labels:

      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

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

                Dates

                • Created:
                  Updated:
                  Resolved: