Skip to content
This repository has been archived by the owner on Jan 29, 2022. It is now read-only.

[HADOOP-320] fix get filter referenced columns #158

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
import org.apache.hadoop.hive.ql.udf.generic.GenericUDFOPEqualOrLessThan;
import org.apache.hadoop.hive.ql.udf.generic.GenericUDFOPGreaterThan;
import org.apache.hadoop.hive.ql.udf.generic.GenericUDFOPLessThan;
import org.apache.hadoop.hive.serde.serdeConstants;
import org.apache.hadoop.hive.serde2.ColumnProjectionUtils;
import org.apache.hadoop.io.Text;
import org.apache.hadoop.mapred.FileSplit;
Expand Down Expand Up @@ -136,8 +137,7 @@ DBObject getFilter(
IndexPredicateAnalyzer.createAnalyzer(false);

// Allow all column names.
String columnNamesStr =
conf.get(ColumnProjectionUtils.READ_COLUMN_NAMES_CONF_STR);
String columnNamesStr = conf.get(serdeConstants.LIST_COLUMNS);
String[] columnNames =
StringUtils.split(columnNamesStr, '\\', StringUtils.COMMA);
for (String colName : columnNames) {
Expand Down