Class FieldsReWriterUtil
java.lang.Object
org.apache.drill.exec.planner.logical.FieldsReWriterUtil
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Holder class to store field information (name and type) with the list of nodes this field is used in.static class
Replaces original node with provided in mapper, otherwise returns original node. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
getFieldNameFromItemStarField
(org.apache.calcite.rex.RexCall rexCall, List<String> fieldNames) Checks if operator call is using item star field.
-
Constructor Details
-
FieldsReWriterUtil
public FieldsReWriterUtil()
-
-
Method Details
-
getFieldNameFromItemStarField
public static String getFieldNameFromItemStarField(org.apache.calcite.rex.RexCall rexCall, List<String> fieldNames) Checks if operator call is using item star field. Will return field name if true. null otherwise.- Parameters:
rexCall
- operator callfieldNames
- list of field names- Returns:
- field name, null otherwise
-