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

UDF in_file() doesn't take CHAR or VARCHAR as input

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.14.0
    • 0.14.0
    • Types, UDF
    • None
    • TODOC14

    Description

      hive> desc alter_varchar_1;
      key                 	string              	None                
      value               	varchar(3)          	None                
      key2                	int                 	None                
      value2              	varchar(10)         	None                
      hive> select in_file(value, value2) from alter_varchar_1;
      FAILED: SemanticException [Error 10016]: Line 1:15 Argument type mismatch 'value': The 1st argument of function IN_FILE must be a string but org.apache.hadoop.hive.serde2.objectinspector.primitive.WritableHiveVarcharObjectInspector@10f1f34a was given.
      

      Attachments

        1. HIVE-6637.1.patch
          12 kB
          Ashish Singh
        2. HIVE-6637.2.patch
          12 kB
          Ashish Singh
        3. HIVE-6637.3.patch
          12 kB
          Ashish Singh

        Activity

          People

            singhashish Ashish Singh
            xuefuz Xuefu Zhang
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: