Uploaded image for project: 'Hive'
  1. Hive
  2. HIVE-26768

HPLSQL UDF is not working if it is applied on a column of type varchar/char/decimal in a table.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 4.0.0
    • Hive

    Description

      HPLSQL UDF is not working if it is applied on a column of type varchar/char/decimal in a table.

      For example:

      CREATE TABLE result (s varchar(20));
      INSERT INTO result VALUES('alice');
      INSERT INTO result VALUES('bob');
      CREATE FUNCTION hello(p string)
       RETURNS STRING
      BEGIN
       RETURN 'Hello, ' || p;
      END;
      
      SELECT hello(s) FROM result; 

       

      --> It should return below

      +----------------+
      |      _c0       |
      +----------------+
      | Hello, alice  |
      | Hello, bob  |
      +----------------+
      

       

      But actual result is 

      +----------------+
      |      _c0       |
      +----------------+
      | Hello,   |
      | Hello,   |
      +----------------+
      

       

      Attachments

        Issue Links

          Activity

            People

              Dayakar Dayakar M
              Dayakar Dayakar M
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 2h 40m
                  2h 40m