vvysotskyi opened a new pull request #2142:
URL: https://github.com/apache/drill/pull/2142


   # [DRILL-5405](https://issues.apache.org/jira/browse/DRILL-5405): Add 
missing operator types without dependency on protobuf enum
   
   ## Description
   Changed all operators to use string literals to provide operator type 
instead of int values that correspond to entries in protobuf enum. To preserve 
backward compatibility, `CoreOperatorType` was moved outside of probufs and 
used to deserialize older query profiles, so there is no need to update it 
every time when new operator or plugin is introduced. Newer query profiles will 
write both int value if the corresponding entry is present in 
`CoreOperatorType` and a new string value. So with these changes, older 
versions of Drill will be able to read profiles created by newer versions and 
newer versions of Drill will be able to read profiles created by older Drill.
   Storage plugins that use `EasyFormatConfig` may not specify `operatorType` 
value, in this case, it will be constructed using the default plugin name. For 
example, if the default name is `text`, `operatorType` will be `TEXT_SUB_SCAN`.
   
   ## Documentation
   NA
   
   ## Testing
   Checked manually different cases for backward compatibility.
   


----------------------------------------------------------------
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]


Reply via email to