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

Add support DISTINCT in dataStream SQL

    XMLWordPrintableJSON

Details

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

    Description

      Add support DISTINCT in dataStream SQL as follow:
      DATA:

      (name, age)
      (kevin, 28),
      (sunny, 6),
      (jack, 6)
      

      SQL:

      SELECT DISTINCT age FROM MyTable"
      

      RESULTS:

      28, 6
      

      To DataStream:

      inputDS
        .keyBy() // KeyBy on all fields
        .flatMap() //  Eliminate duplicate data
      

      fhueske do we need this feature?

      Attachments

        Issue Links

          Activity

            People

              sunjincheng121 sunjincheng
              sunjincheng121 sunjincheng
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: