kaka11chen opened a new pull request, #21306:
URL: https://github.com/apache/doris/pull/21306

   
   ## Proposed changes
   
   ### Issue
   `Wrong data type for column` error when column order in hive table is not 
same in orc file schema.
   
   The root cause is in order to handle the following case:
   
   The table in orc format of Hive 1.x may encounter system column names such 
as `_col0`, `_col1`, `_col2`... in the underlying orc file schema, which need 
to use the column names in the hive table for mapping.
   
   ### Solution
   Currently fix this issue by handling the following case by specifying hive 
version to 1.x.x in the hive catalog configuration.
   
   ```sql
   CREATE CATALOG hive PROPERTIES (
       'hive.version' = '1.x.x'
   );
   ```
   
   
   ## Further comments
   
   If this is a relatively large or complex change, kick off the discussion at 
[[email protected]](mailto:[email protected]) by explaining why you 
chose the solution you did and what alternatives you considered, etc...
   
   


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

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to