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

Rename Table conversion methods in TableEnvironment

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 0.9
    • Fix Version/s: 0.9
    • Component/s: Table SQL / API
    • Labels:
      None

      Description

      The TableEnvironment provides methods to convert DataSets and DataStreams into Tables and back. These methods are called toTable(), toSet(), and toStream().

      I propose to rename the methods into fromDataSet(), fromDataStream(), toDataSet(), and toDataStream() for the following reasons:

      • fromDataSet(), fromDataStream() is closer to the SQL FROM expression
      • It allows to add methods such as fromCSV(), fromHCat(), fromParquet(), and so on to the TableEnvironment
      • toSet() and toStream() should be renamed for consistency.

        Attachments

          Activity

            People

            • Assignee:
              fhueske Fabian Hueske
              Reporter:
              fhueske Fabian Hueske
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: