[ 
https://issues.apache.org/jira/browse/HIVE-4025?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13582886#comment-13582886
 ] 

Phabricator commented on HIVE-4025:
-----------------------------------

navis has commented on the revision "HIVE-4025 [jira] Add reflect UDF for 
member method invocation of column".

INLINE COMMENTS
  ql/src/test/results/clientpositive/udf_reflect2.q.out:312 I'll update that.

  bq. The last columns seem to be wrong:
  It's right result for TimeStamp class.

  getYear()
       * Returns a value that is the result of subtracting 1900 from the
       * year that contains or begins with the instant in time represented
       * by this <code>Date</code> object, as interpreted in the local
       * time zone.

  getMonth()
       * Returns a number representing the month that contains or begins
       * with the instant in time represented by this <tt>Date</tt> object.
       * The value returned is between <code>0</code> and <code>11</code>,
       * with the value <code>0</code> representing January.

  getDay()
       * Returns the day of the week represented by this date. The
       * returned value (<tt>0</tt> = Sunday, <tt>1</tt> = Monday,
       * <tt>2</tt> = Tuesday, <tt>3</tt> = Wednesday, <tt>4</tt> =
       * Thursday, <tt>5</tt> = Friday, <tt>6</tt> = Saturday)
       * represents the day of the week that contains or begins with
       * the instant in time represented by this <tt>Date</tt> object,
       * as interpreted in the local time zone.

REVISION DETAIL
  https://reviews.facebook.net/D8601

To: JIRA, navis
Cc: njain, brock

                
> Add reflect UDF for member method invocation of column
> ------------------------------------------------------
>
>                 Key: HIVE-4025
>                 URL: https://issues.apache.org/jira/browse/HIVE-4025
>             Project: Hive
>          Issue Type: Improvement
>          Components: UDF
>            Reporter: Navis
>            Assignee: Navis
>            Priority: Trivial
>         Attachments: HIVE-4025.D8601.1.patch
>
>
> There are many useful non-static methods on type of primitive types. But 
> current reflect UDF cannot invoke those. For example,
> select reflect2(value, "replace", "val", "VALUE") from src;
> which replaces 'val' part of value column with 'VALUE'

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to