Uh oh!
There was an error while loading. Please reload this page.
[Refactor](BE) Uniform Expr, Block, Columns size-relative interface (Part II) - #43218
Conversation
doris-robot
commented
Nov 4, 2024
Thank you for your contribution to Apache Doris. Since 2024-03-18, the Document has been moved to doris-website. |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
…Part I) (#42930) ## Proposed changes In this pr we refactored some base interface to avoid narrow cast with data consistent kept. We uniformed these type of numbers: ``` columns in Block - U32 (just use no more than U16) Rows in Block - U64 (others U32, ColumnString64 U64) column_id in expr arg - I32 (because -1 is meaningful) child of Expr - U16 (FE use int32, have a restriction of 10000. adjustable but no guarantee for result) ``` So, for functions' argument column id, we use `uint32` to replace `size_t`. For rows, we use `size_t` to replace some `int`. For child of expr, we cast it as `uint_16` to use, rather than `size_t` as `vector::size()` Refactor of table functions: #43218
zclllyybb
commented
Nov 8, 2024
run buildall |
PR approved by anyone and no changes requested. |
doris-robot
commented
Nov 8, 2024
TeamCity be ut coverage result: |
PR approved by at least one committer and no changes requested. |
fix macos compile failed, introduced by apache#40813, apache#42930, apache#43218, apache#43289 (cherry picked from commit ded2190)
…Part I) (apache#42930) ## Proposed changes In this pr we refactored some base interface to avoid narrow cast with data consistent kept. We uniformed these type of numbers: ``` columns in Block - U32 (just use no more than U16) Rows in Block - U64 (others U32, ColumnString64 U64) column_id in expr arg - I32 (because -1 is meaningful) child of Expr - U16 (FE use int32, have a restriction of 10000. adjustable but no guarantee for result) ``` So, for functions' argument column id, we use `uint32` to replace `size_t`. For rows, we use `size_t` to replace some `int`. For child of expr, we cast it as `uint_16` to use, rather than `size_t` as `vector::size()` Refactor of table functions: apache#43218
…Part II) (apache#43218) part 2 of apache#42930 two modifications: 1. when parsing data of json array, cast to target type when parse int data no matter what source type is. 2. in explode_numbers, the argument column type is certain Int32. so reduce some virtual function call.
fix macos compile failed, introduced by apache#40813, apache#42930, apache#43218, apache#43289
part 2 of #42930
two modifications: