EmmyMiao87 commented on a change in pull request #1695: Refactor alter job
URL: https://github.com/apache/incubator-doris/pull/1695#discussion_r319758050
##########
File path: fe/src/main/java/org/apache/doris/planner/BrokerScanNode.java
##########
@@ -225,62 +229,73 @@ private void initParams(ParamCreateContext context)
throws AnalysisException, Us
* @throws UserException
*/
private void initColumns(ParamCreateContext context) throws UserException {
- // This tuple descriptor is used for origin file
- TupleDescriptor srcTupleDesc =
analyzer.getDescTbl().createTupleDescriptor();
- context.tupleDescriptor = srcTupleDesc;
- Map<String, SlotDescriptor> slotDescByName = Maps.newHashMap();
- context.slotDescByName = slotDescByName;
-
- TBrokerScanRangeParams params = context.params;
- // there are no columns transform
+ List<String> sourceFileColumns = context.fileGroup.getFileFieldNames();
Review comment:
Why don't you analyze the `sourceFileColumns ` and `pathColumns ` in
`DataDescription` ? The `originColumnNameToExprList ` is the finally columns
expr including source file columns, path columns, and column expr.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]