Uploaded image for project: 'Pig'
  1. Pig
  2. PIG-3014

CurrentTime() UDF has undesirable characteristics

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.12.0
    • Component/s: None
    • Labels:
      None

      Description

      As part of the explanation of the new DateTime datatype I noticed that we had added a CurrentTime() UDF. The issue with this UDF is that it returns the current time of every exec invocation, which can lead to confusing results. In PIG-1431 I proposed a way such that every instance of the same NOW() will return the same time, which I think is better. Would enjoy thoughts.

        Attachments

        1. PIG-3014-3.patch
          0.5 kB
          Cheolsoo Park
        2. PIG-3014-2.patch
          7 kB
          Cheolsoo Park
        3. PIG-3014-1.patch
          5 kB
          Jonathan Coveney
        4. PIG-3014-0.patch
          8 kB
          Jonathan Coveney

          Issue Links

            Activity

              People

              • Assignee:
                jcoveney Jonathan Coveney
                Reporter:
                jcoveney Jonathan Coveney
              • Votes:
                0 Vote for this issue
                Watchers:
                6 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: