SUPPORT / SAMPLES & SAS NOTES
 

Support

Problem Note 64528: Aggregate functions are not passed down through an implicit pass-through query to Apache Hive

DetailsHotfixAboutRate It

When you use aggregate functions in an implicit pass-through request to query a Hive table, an error message that is similar to the following appears in the SAS® log. In your environment, the relevant function name appears in place of TEST:

ERROR: Function TEST could not be located.

The following syntax is an example of the code that can produce this error message:

options sastrace=',,,ds' sastraceloc=saslog nostsuffix sql_ip_trace=(note, source) msglevel=i debug=dbms_select;
options dbidirectexec;
option set=SAS_HADOOP_JAR_PATH='/opt/sasinside/hadoop/lib';
option set=SAS_HADOOP_CONFIG_PATH='/opt/sasinside/hadoop/conf/';
data work.newfunc;
   SASFUNCNAME = "test";
   SASFUNCNAMELEN = 4;
   DBMSFUNCNAME = "test";
   DBMSFUNCNAMELEN = 4;
   FUNCTION_CATEGORY = "AGGREGATE";
   FUNC_USAGE_CONTEXT = "SELECT_LIST";
   FUNCTION_RETURNTYP = "NUMERIC";
   FUNCTION_NUM_ARGS = 1;
   CONVERT_ARGS = 0;
   ENGINEINDEX = 0;
   output;
run;
LIBNAME cdh HADOOP PORT=10000 SERVER="hive_server" sql_functions="EXTERNAL_APPEND=work.newfunc"
        sql_functions_copy=saslog;
proc delete data=cdh.class;
proc delete data=cdh.class_agg;
data cdh.class; 
   set sashelp.class; 
run; 
proc sql;
   create table cdh.class_agg as
          select test(age)
                 from cdh.class
   ;
quit;

Click the Hot Fix tab in this note to access the hot fix for this issue.



Operating System and Release Information

Product FamilyProductSystemProduct ReleaseSAS Release
ReportedFixed*ReportedFixed*
SAS SystemBase SASMicrosoft® Windows® for x649.4_M59.4_M59.4 TS1M59.4 TS1M5
64-bit Enabled AIX9.4_M59.4_M59.4 TS1M59.4 TS1M5
64-bit Enabled Solaris9.4_M59.4_M59.4 TS1M59.4 TS1M5
HP-UX IPF9.4_M59.4_M59.4 TS1M59.4 TS1M5
Linux for x649.4_M59.4_M59.4 TS1M59.4 TS1M5
Solaris for x649.4_M59.4_M59.4 TS1M59.4 TS1M5
* For software releases that are not yet generally available, the Fixed Release is the software release in which the problem is planned to be fixed.