Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[bug] fix bitmap and hll type column access issue #218

Merged
merged 2 commits into from
Jul 29, 2024

Conversation

gnehil
Copy link
Contributor

@gnehil gnehil commented Jul 18, 2024

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] by explaining why you chose the solution you did and what alternatives you considered, etc...

@JNSimba JNSimba merged commit 5a3177b into apache:master Jul 29, 2024
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants