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

CurrentTime() UDF has undesirable characteristics

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 0.12.0
    • None
    • 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-0.patch
          8 kB
          Jonathan Coveney
        2. PIG-3014-1.patch
          5 kB
          Jonathan Coveney
        3. PIG-3014-2.patch
          7 kB
          Cheolsoo Park
        4. PIG-3014-3.patch
          0.5 kB
          Cheolsoo Park

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: