Hive
  1. Hive
  2. HIVE-471

Add reflect() UDF for reflective invocation of Java methods

    Details

    • Type: New Feature New Feature
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 0.7.0
    • Fix Version/s: 0.7.0
    • Component/s: UDF
    • Labels:
      None
    • Hadoop Flags:
      Reviewed

      Description

      There are many methods in java that are static and have no arguments or can be invoked with one simple parameter. More complicated functions will require a UDF but one generic one can work as a poor-mans UDF.

      SELECT reflect("java.lang.String", "valueOf", 1), reflect("java.lang.String", "isEmpty")
      FROM src LIMIT 1;
      
      1. HIVE-471.1.patch
        16 kB
        Zheng Shao
      2. HIVE-471.2.patch
        16 kB
        Zheng Shao
      3. HIVE-471.3.patch
        17 kB
        Edward Capriolo
      4. HIVE-471.4.patch
        18 kB
        Edward Capriolo
      5. HIVE-471.5.patch
        18 kB
        Edward Capriolo
      6. HIVE-471.6.patch.txt
        23 kB
        Edward Capriolo
      7. hive-471.diff
        4 kB
        Edward Capriolo
      8. hive-471-gen.diff
        6 kB
        Edward Capriolo

        Issue Links

          Activity

          Carl Steinbach made changes -
          Status Resolved [ 5 ] Closed [ 6 ]
          Carl Steinbach made changes -
          Link This issue relates to HIVE-1877 [ HIVE-1877 ]
          Carl Steinbach made changes -
          Summary A UDF for simple reflection Add reflect() UDF for reflective invocation of Java methods
          Affects Version/s 0.7.0 [ 12315150 ]
          Affects Version/s 0.6.0 [ 12314524 ]
          Component/s UDF [ 12313585 ]
          Component/s Query Processor [ 12312586 ]
          Namit Jain made changes -
          Status Patch Available [ 10002 ] Resolved [ 5 ]
          Hadoop Flags [Reviewed]
          Resolution Fixed [ 1 ]
          Edward Capriolo made changes -
          Status Open [ 1 ] Patch Available [ 10002 ]
          Edward Capriolo made changes -
          Attachment HIVE-471.6.patch.txt [ 12453366 ]
          Namit Jain made changes -
          Status Patch Available [ 10002 ] Open [ 1 ]
          Edward Capriolo made changes -
          Fix Version/s 0.7.0 [ 12315150 ]
          Status Open [ 1 ] Patch Available [ 10002 ]
          Affects Version/s 0.6.0 [ 12314524 ]
          Affects Version/s 0.5.1 [ 12314793 ]
          Edward Capriolo made changes -
          Attachment HIVE-471.5.patch [ 12453072 ]
          Namit Jain made changes -
          Status Patch Available [ 10002 ] Open [ 1 ]
          Edward Capriolo made changes -
          Status Open [ 1 ] Patch Available [ 10002 ]
          Edward Capriolo made changes -
          Attachment HIVE-471.4.patch [ 12449510 ]
          John Sichi made changes -
          Fix Version/s 0.6.0 [ 12314524 ]
          Namit Jain made changes -
          Status Patch Available [ 10002 ] Open [ 1 ]
          Edward Capriolo made changes -
          Fix Version/s 0.6.0 [ 12314524 ]
          Affects Version/s 0.5.1 [ 12314793 ]
          Affects Version/s 0.6.0 [ 12314524 ]
          Edward Capriolo made changes -
          Attachment HIVE-471.3.patch [ 12438725 ]
          Zheng Shao made changes -
          Attachment HIVE-471.2.patch [ 12435325 ]
          Zheng Shao made changes -
          Status Open [ 1 ] Patch Available [ 10002 ]
          Affects Version/s 0.6.0 [ 12314524 ]
          Zheng Shao made changes -
          Status Patch Available [ 10002 ] Open [ 1 ]
          Zheng Shao made changes -
          Attachment HIVE-471.1.patch [ 12434792 ]
          Namit Jain made changes -
          Fix Version/s 0.5.0 [ 12314156 ]
          Johan Oskarsson made changes -
          Fix Version/s 0.5.0 [ 12314156 ]
          Fix Version/s 0.4.0 [ 12313714 ]
          Edward Capriolo made changes -
          Attachment hive-471-gen.diff [ 12411456 ]
          Edward Capriolo made changes -
          Status Open [ 1 ] Patch Available [ 10002 ]
          Edward Capriolo made changes -
          Field Original Value New Value
          Attachment hive-471.diff [ 12407205 ]
          Edward Capriolo created issue -

            People

            • Assignee:
              Edward Capriolo
              Reporter:
              Edward Capriolo
            • Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development