Pig
  1. Pig
  2. PIG-3014

CurrentTime() UDF has undesirable characteristics

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major 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.

      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

          Jonathan Coveney created issue -
          Jonathan Coveney made changes -
          Field Original Value New Value
          Attachment PIG-3014-0.patch [ 12552192 ]
          Jonathan Coveney made changes -
          Status Open [ 1 ] Patch Available [ 10002 ]
          Assignee Jonathan Coveney [ jcoveney ]
          Fix Version/s 0.12 [ 12323380 ]
          Jonathan Coveney made changes -
          Link This issue supercedes PIG-1431 [ PIG-1431 ]
          Jonathan Coveney made changes -
          Attachment PIG-3014-1.patch [ 12552347 ]
          Cheolsoo Park made changes -
          Attachment PIG-3014-2.patch [ 12554095 ]
          Cheolsoo Park made changes -
          Status Patch Available [ 10002 ] Resolved [ 5 ]
          Resolution Fixed [ 1 ]
          Julien Le Dem made changes -
          Resolution Fixed [ 1 ]
          Status Resolved [ 5 ] Reopened [ 4 ]
          Cheolsoo Park made changes -
          Attachment PIG-3014-3.patch [ 12555562 ]
          Cheolsoo Park made changes -
          Status Reopened [ 4 ] Patch Available [ 10002 ]
          Cheolsoo Park made changes -
          Status Patch Available [ 10002 ] Resolved [ 5 ]
          Resolution Fixed [ 1 ]
          Daniel Dai made changes -
          Status Resolved [ 5 ] Closed [ 6 ]

            People

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

              Dates

              • Created:
                Updated:
                Resolved:

                Development