hive-testbench
hive-testbench copied to clipboard
load-partitioned.sql doesn't inherit shell value for ${REDUCERS}
The intent for the tpch-setup.sh command is to pass the REDUCERS variable into the final stage, which checks the table creation in the line
hive -i settings/load-${SCHEMA_TYPE}.sql -f ddl-tpch/bin_${SCHEMA_TYPE}/analyze.sql --database ${DATABASE};
But the $REDUCERS variable cannot be interpreted in load-partitioned.sql in the line
set hive.exec.reducers.max=${REDUCERS};
This results in a hive execution error