[jira] [Created] (FLINK-4802) distinct() implicitly uses 0th field, when called without a parameter

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[jira] [Created] (FLINK-4802) distinct() implicitly uses 0th field, when called without a parameter

Shang Yuanchun (Jira)
Yakov Goldberg created FLINK-4802:
-------------------------------------

             Summary: distinct() implicitly uses 0th field, when called without a parameter
                 Key: FLINK-4802
                 URL: https://issues.apache.org/jira/browse/FLINK-4802
             Project: Flink
          Issue Type: Bug
          Components: Python API
            Reporter: Yakov Goldberg


Check this code in DataSet.py
def distinct(self, *fields):
        f = None
        if len(fields) == 0:
            f = lambda x: (x,)
            fields = (0,)



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)