[
https://issues.apache.org/jira/browse/HIVE-935?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12788540#action_12788540
]
Namit Jain commented on HIVE-935:
---------------------------------
5 ArrayList<exprNodeDesc> colList = new
ArrayList<exprNodeDesc>();
4726 RowResolver inputRR =
opParseCtx.get(op).getRR();
4727 RowResolver allPathRR = new
RowResolver();
4728 genColListRegex(".*", null,
null, null, colList, inputRR,
4729 Integer.valueOf(0), allPathRR);
4730 Vector<ColumnInfo> cols =
allPathRR.getColumnInfos();
4731 ArrayList<String>
outputColumnNames = new ArrayList<String>();
4732 for (ColumnInfo c : cols) {
4733
outputColumnNames.add(c.getInternalName());
4734 }
4735 Operator allPath =
4736
putOpInsertMap(OperatorFactory.getAndMakeChild(
4737 new selectDesc(colList,
outputColumnNames, true),
4738 new
RowSchema(allPathRR.getColumnInfos()),
4739 op), allPathRR);
4740
Instead of the above in SemanticAnalyzer.java, you can create a select by
public selectDesc(final boolean selStarNoCompute) {
this.selStarNoCompute = selStarNoCompute;
}
If selStarNoCompute is true, you get the same as above
> support LATERAL VIEW
> --------------------
>
> Key: HIVE-935
> URL: https://issues.apache.org/jira/browse/HIVE-935
> Project: Hadoop Hive
> Issue Type: New Feature
> Components: Query Processor
> Reporter: Namit Jain
> Assignee: Paul Yang
> Attachments: HIVE-935.1.patch, HIVE-935.2.patch, HIVE-935.3.patch,
> HIVE-935.4.patch, HIVE-935.5.patch, HIVE-935.6.patch, HIVE-935.7.patch
>
>
> For table functions, the following syntax should be supported
> select ... from T LATERAL VIEW explode(adid_list) as adid,...
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.