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

[CH-123] Support short/byte/binary/decimal/array/map/struct #128

Merged

Conversation

taiyang-li
Copy link

@taiyang-li taiyang-li commented Sep 19, 2022

Changelog category (leave one):

  • New Feature

Changelog entry (a user-readable short description of the changes that goes to CHANGELOG.md):
Support CH column to Spark row for complex types

Detailed Steps:

  • Calculate backing buffer length for complex types(array/map/tuple)
  • Implement array writer
  • Implement map writer
  • Implement tuple writer
  • Implement decimal writer
  • Implement array reader
  • Implement map reader
  • Implement tuple reader
  • Implement decimal reader
  • Add tests for above reader and writer
  • Add benchmarks for above reader and writer
  • Complex type transformation between substrait and CH.
  • Complex type transformation between Spark and substrait in gluten.
  • Improve the performance of above writers(BM_CHColumnToSparkRow_Lineitem: from 328ms to 260ms)
  • Improve the performance of above readers(BM_SparkRowToCHColumn_Lineitem: from 359ms to 305ms)
  • implement short/byte/binary

Benchmark baseline branch: https://github.com/bigo-sg/clickhouse/tree/baseline

@kyligence-git
Copy link
Collaborator

Can one of the admins verify this patch?

@taiyang-li taiyang-li changed the title support conversion between CH column and Spark row for decimal/array/map/struct support conversion between CH column and Spark row for short/byte/binary/decimal/array/map/struct Oct 9, 2022
@taiyang-li taiyang-li changed the title support conversion between CH column and Spark row for short/byte/binary/decimal/array/map/struct Support short/byte/binary/decimal/array/map/struct Oct 9, 2022
@taiyang-li taiyang-li changed the title Support short/byte/binary/decimal/array/map/struct [CH-123] Support short/byte/binary/decimal/array/map/struct Oct 9, 2022
@liuneng1994
Copy link
Collaborator

test this please with 402

3 similar comments
@liuneng1994
Copy link
Collaborator

test this please with 402

@liuneng1994
Copy link
Collaborator

test this please with 402

@liuneng1994
Copy link
Collaborator

test this please with 402

@taiyang-li
Copy link
Author

test this please with 402

2 similar comments
@taiyang-li
Copy link
Author

test this please with 402

@taiyang-li
Copy link
Author

test this please with 402

@taiyang-li
Copy link
Author

test this please with 402

@taiyang-li
Copy link
Author

test this please with 402

1 similar comment
@taiyang-li
Copy link
Author

test this please with 402

Copy link
Collaborator

@liuneng1994 liuneng1994 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

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.

4 participants