gnehil opened a new pull request, #218:
URL: https://github.com/apache/doris-spark-connector/pull/218

   # Proposed changes
   
   Issue Number: close #xxx
   
   ## Problem Summary:
   
   For the `bitmap` type, doris does not currently support reading, so the 
previous implementation method is to ignore the `bitmap` type field by setting 
the `doris.ignore-type` option.
   However, when you import data into Doris by executing the `insert into 
select` statement, the source table and the target table have the same number 
of columns, and you need to map the source table columns to columns of the 
Doris bitmap type, the number of select columns and the number of target table 
columns will be inconsistent, causing Spark parsing failure.
   So now the solution is as follows:
   - When reading, the `bitmap` and `HLL `type columns will return the string 
constant 'READ UNSUPPORTED'.
   - When writing, `bitmap` and `HLL` type columns are converted to bitmap type 
by specifying function mapping using the doris.write.fields option.
   - `doris.ignore-type` option will be removed
   
   ## Checklist(Required)
   
   1. Does it affect the original behavior: (Yes/No/I Don't know)
   2. Has unit tests been added: (Yes/No/No Need)
   3. Has document been added or modified: (Yes/No/No Need)
   4. Does it need to update dependencies: (Yes/No)
   5. Are there any changes that cannot be rolled back: (Yes/No)
   
   ## 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