Skip to content

avoid redundant and time-consuming type check operation using vector api - #18505

Merged
sukki37 merged 17 commits into
matrixorigin:mainfrom
XuPeng-SH:optimize-vector
Sep 5, 2024
Merged

sukki37 merged 17 commits into
matrixorigin:mainfrom
XuPeng-SH:optimize-vector

Conversation

@XuPeng-SH

@XuPeng-SH XuPeng-SH commented Sep 3, 2024 •

Copy link
Copy Markdown
Contributor

User description

What type of PR is this?

  • API-change
  • BUG
  • Improvement
  • Documentation
  • Feature
  • Test and CI
  • Code Refactoring

Which issue(s) this PR fixes:

issue #18432

What this PR does / why we need it:

image

Type check in vector is very CPU intensive.
Here introduce API without type check.
We can use no type check API in the following scenario:

image

PR Type

Enhancement, Tests


Description

  • Introduced NoTypeCheck variants for vector operations to improve performance by bypassing redundant type checks.
  • Updated various components, including index utilities, external execution, and aggregation execution, to use no-type-check functions.
  • Enhanced performance in primary key filters, window operations, and data pool operations by removing type checks.
  • Added benchmark tests for ToSliceNoTypeCheck and refactored tests to ensure type safety where necessary.
  • Ensured type safety in specific operations, such as column cache and snapshot metadata handling, by using type-checked functions.

Changes walkthrough 📝

Relevant files
Enhancement
16 files
vector.go
Optimize vector operations by removing redundant type checks

pkg/container/vector/vector.go

  • Introduced ToSliceNoTypeCheck and GetFixedAtNoTypeCheck functions to
    bypass type checks.
  • Replaced existing functions with no-type-check variants for
    performance optimization.
  • Added comments to indicate efficiency improvements with no-type-check
    functions.
  • Updated various vector operations to use no-type-check functions.
  • +219/-195
    index_util.go
    Enhance index utility performance by skipping type checks

    pkg/sql/util/index_util.go

  • Replaced MustFixedCol with MustFixedColNoTypeCheck for various data
    types.
  • Improved performance by bypassing type checks in vector operations.
  • +57/-57 
    external.go
    Improve external execution performance by removing type checks

    pkg/sql/colexec/external/external.go

  • Updated MustFixedCol and SetFixedAt functions to their no-type-check
    variants.
  • Improved data processing performance by removing type checks.
  • +33/-33 
    aggResult.go
    Optimize aggregation execution by using no-type-check functions

    pkg/sql/colexec/aggexec/aggResult.go

  • Changed MustFixedCol to MustFixedColWithTypeCheck for boolean
    operations.
  • Enhanced performance by using no-type-check functions where
    applicable.
  • +10/-10 
    util.go
    Optimize vector operations by removing type checks             

    pkg/vm/engine/disttae/util.go

  • Replaced MustFixedCol with MustFixedColNoTypeCheck for various data
    types.
  • Updated functions to use no type check versions for performance.
  • +85/-85 
    zm.go
    Improve index vector operations by eliminating type checks

    pkg/vm/engine/tae/index/zm.go

  • Replaced MustFixedCol with MustFixedColNoTypeCheck for different data
    types.
  • Enhanced performance by avoiding redundant type checks.
  • +44/-44 
    column_cache.go
    Ensure type safety in column cache operations                       

    pkg/incrservice/column_cache.go

  • Changed MustFixedCol to MustFixedColWithTypeCheck for integer
    operations.
  • +1/-1     
    shuffle.go
    Optimize vector operations by removing type checks             

    pkg/sql/colexec/shuffle/shuffle.go

  • Replaced MustFixedCol with MustFixedColNoTypeCheck for various types.
  • Enhanced performance by avoiding type checks during vector operations.

  • +42/-42 
    window.go
    Enhance window operations by skipping type checks               

    pkg/sql/colexec/window/window.go

  • Updated vector operations to use MustFixedColNoTypeCheck.
  • Improved efficiency by bypassing type checks.
  • +34/-34 
    fill.go
    Improve fill operations with no type check vectors             

    pkg/sql/colexec/fill/fill.go

  • Modified vector append and set operations to use NoTypeCheck variants.
  • Reduced overhead by eliminating type checks.
  • +44/-44 
    index.go
    Optimize index operations by removing type checks               

    pkg/vm/engine/tae/txn/txnimpl/index.go

  • Switched to MustFixedColNoTypeCheck for batch insert and dedup
    operations.
  • Streamlined index operations by removing type checks.
  • +45/-45 
    pk_filter.go.go
    Improve primary key filter with no type check vectors       

    pkg/vm/engine/disttae/pk_filter.go.go

  • Replaced vector operations with NoTypeCheck variants.
  • Enhanced primary key filter efficiency by skipping type checks.
  • +44/-44 
    baseTemplate.go
    Enhance function templates by removing type checks             

    pkg/sql/plan/function/baseTemplate.go

  • Updated function templates to use MustFixedColNoTypeCheck.
  • Improved performance by avoiding unnecessary type checks.
  • +25/-25 
    snapshot.go
    Ensure type safety in snapshot metadata operations             

    pkg/vm/engine/tae/logtail/snapshot.go

  • Utilized MustFixedColWithTypeCheck for snapshot operations.
  • Ensured type safety in snapshot metadata handling.
  • +26/-26 
    poolData.go
    Optimize data pool operations by removing type checks       

    pkg/sql/colexec/sample/poolData.go

  • Replaced SetFixedAt with SetFixedAtNoTypeCheck in replace methods.
  • Improved data pool operations by removing type checks.
  • +20/-20 
    tools.go
    Add no type check functions to vector tools                           

    pkg/container/vector/tools.go

  • Added ToFixedColNoTypeCheck and MustFixedColNoTypeCheck functions.
  • Enhanced vector tools with no type check capabilities.
  • +23/-9   
    Tests
    2 files
    vector_test.go
    Refactor tests to use type-checked vector operations         

    pkg/container/vector/vector_test.go

  • Replaced MustFixedCol with MustFixedColWithTypeCheck in multiple test
    cases.
  • Added benchmark tests for ToSliceNoTypeCheck.
  • +154/-143
    mergesort_test.go
    Update mergesort tests to include type checks                       

    pkg/vm/engine/tae/mergesort/mergesort_test.go

  • Changed test assertions to use MustFixedColWithTypeCheck.
  • Ensured type checks in test scenarios.
  • +27/-27 
    Additional files (token-limit)
    101 files
    catalog.go
    ...                                                                                                           

    pkg/vm/engine/disttae/cache/catalog.go

    ...

    +25/-25 
    adapter.go
    ...                                                                                                           

    pkg/stream/adapter/kafka/adapter.go

    ...

    +21/-21 
    shard_hash.go
    ...                                                                                                           

    pkg/vm/engine/memoryengine/shard_hash.go

    ...

    +23/-23 
    aobj_merger.go
    ...                                                                                                           

    pkg/vm/engine/tae/mergesort/aobj_merger.go

    ...

    +23/-23 
    export.go
    ...                                                                                                           

    pkg/frontend/export.go

    ...

    +22/-22 
    merger.go
    ...                                                                                                           

    pkg/vm/engine/tae/mergesort/merger.go

    ...

    +23/-23 
    sort.go
    ...                                                                                                           

    pkg/sort/sort.go

    ...

    +23/-23 
    txn.go
    ...                                                                                                           

    pkg/vm/engine/disttae/txn.go

    ...

    +26/-26 
    search.go
    ...                                                                                                           

    pkg/container/vector/search.go

    ...

    +16/-16 
    tuplesParse.go
    ...                                                                                                           

    pkg/catalog/tuplesParse.go

    ...

    +23/-23 
    eval_expr_util.go
    ...                                                                                                           

    pkg/sql/util/eval_expr_util.go

    ...

    +19/-19 
    constant_fold.go
    ...                                                                                                           

    pkg/sql/plan/rule/constant_fold.go

    ...

    +20/-20 
    evalExpression.go
    ...                                                                                                           

    pkg/sql/colexec/evalExpression.go

    ...

    +20/-20 
    encode.go
    ...                                                                                                           

    pkg/vm/engine/disttae/logtailreplay/encode.go

    ...

    +20/-20 
    catalog_test.go
    ...                                                                                                           

    pkg/vm/engine/disttae/cache/catalog_test.go

    ...

    +16/-16 
    median.go
    ...                                                                                                           

    pkg/sql/colexec/aggexec/median.go

    ...

    +13/-12 
    output.go
    ...                                                                                                           

    pkg/frontend/output.go

    ...

    +23/-23 
    compute.go
    ...                                                                                                           

    pkg/vm/engine/tae/compute/compute.go

    ...

    +23/-23 
    utils.go
    ...                                                                                                           

    pkg/vm/engine/tae/containers/utils.go

    ...

    +26/-26 
    vector.go
    ...                                                                                                           

    pkg/txn/trace/vector.go

    ...

    +22/-22 
    fuzzyCheck.go
    ...                                                                                                           

    pkg/sql/compile/fuzzyCheck.go

    ...

    +20/-20 
    util.go
    ...                                                                                                           

    pkg/frontend/util.go

    ...

    +21/-21 
    types.go
    ...                                                                                                           

    pkg/sql/colexec/deletion/types.go

    ...

    +24/-24 
    func_binary.go
    ...                                                                                                           

    pkg/sql/plan/function/func_binary.go

    ...

    +7/-7     
    print.go
    ...                                                                                                           

    pkg/vm/engine/tae/common/print.go

    ...

    +22/-22 
    tae.go
    ...                                                                                                           

    pkg/util/export/etl/tae.go

    ...

    +14/-14 
    change_handle.go
    ...                                                                                                           

    pkg/vm/engine/disttae/logtailreplay/change_handle.go

    ...

    +23/-23 
    top.go
    ...                                                                                                           

    pkg/sql/colexec/top/top.go

    ...

    +18/-18 
    concat.go
    ...                                                                                                           

    pkg/sql/colexec/aggexec/concat.go

    ...

    +21/-21 
    adapter_test.go
    ...                                                                                                           

    pkg/stream/adapter/kafka/adapter_test.go

    ...

    +22/-22 
    partition_state.go
    ...                                                                                                           

    pkg/vm/engine/disttae/logtailreplay/partition_state.go

    ...

    +13/-13 
    pubsub.go
    ...                                                                                                           

    pkg/bootstrap/versions/v1_3_0/pubsub.go

    ...

    +8/-8     
    utils.go
    ...                                                                                                           

    pkg/vm/engine/tae/logtail/utils.go

    ...

    +6/-6     
    group_test.go
    ...                                                                                                           

    pkg/sql/colexec/mergegroup/group_test.go

    ...

    +8/-7     
    txn_table.go
    ...                                                                                                           

    pkg/vm/engine/disttae/txn_table.go

    ...

    +6/-6     
    generate_series.go
    ...                                                                                                           

    pkg/sql/colexec/table_function/generate_series.go

    ...

    +8/-8     
    show_account.go
    ...                                                                                                           

    pkg/frontend/show_account.go

    ...

    +8/-8     
    storage_usage_test.go
    ...                                                                                                           

    pkg/vm/engine/tae/db/test/storage_usage_test.go

    ...

    +8/-8     
    group_test.go
    ...                                                                                                           

    pkg/sql/colexec/group/group_test.go

    ...

    +6/-6     
    functions.go
    ...                                                                                                           

    pkg/vm/engine/tae/tables/functions.go

    ...

    +4/-4     
    fromFixedRetFixed.go
    ...                                                                                                           

    pkg/sql/colexec/aggexec/fromFixedRetFixed.go

    ...

    +5/-5     
    txn_database.go
    ...                                                                                                           

    pkg/vm/engine/disttae/txn_database.go

    ...

    +5/-5     
    fromFixedRetBytes.go
    ...                                                                                                           

    pkg/sql/colexec/aggexec/fromFixedRetBytes.go

    ...

    +5/-5     
    utils.go
    ...                                                                                                           

    pkg/container/vector/utils.go

    ...

    +5/-5     
    timewin.go
    ...                                                                                                           

    pkg/sql/colexec/timewin/timewin.go

    ...

    +5/-5     
    writer_test.go
    ...                                                                                                           

    pkg/objectio/writer_test.go

    ...

    +6/-6     
    storage_usage.go
    ...                                                                                                           

    pkg/vm/engine/tae/logtail/storage_usage.go

    ...

    +9/-9     
    sort_test.go
    ...                                                                                                           

    pkg/sort/sort_test.go

    ...

    +5/-5     
    logicalOperator.go
    ...                                                                                                           

    pkg/sql/plan/function/logicalOperator.go

    ...

    +6/-6     
    func_builtin.go
    ...                                                                                                           

    pkg/sql/plan/function/func_builtin.go

    ...

    +4/-4     
    compile.go
    ...                                                                                                           

    pkg/sql/compile/compile.go

    ...

    +4/-4     
    constraint_util.go
    ...                                                                                                           

    pkg/sql/colexec/constraint_util.go

    ...

    +4/-4     
    operator_between.go
    ...                                                                                                           

    pkg/sql/plan/function/operator_between.go

    ...

    +4/-4     
    pnode.go
    ...                                                                                                           

    pkg/vm/engine/tae/tables/pnode.go

    ...

    +5/-5     
    datasource.go
    ...                                                                                                           

    pkg/vm/engine/disttae/datasource.go

    ...

    +5/-5     
    mysql_cmd_executor.go
    ...                                                                                                           

    pkg/frontend/mysql_cmd_executor.go

    ...

    +4/-4     
    exec_test.go
    ...                                                                                                           

    pkg/sql/colexec/aggexec/exec_test.go

    ...

    +4/-4     
    on_duplicate_key.go
    ...                                                                                                           

    pkg/sql/colexec/onduplicatekey/on_duplicate_key.go

    ...

    +4/-4     
    db.go
    ...                                                                                                           

    pkg/vm/engine/disttae/db.go

    ...

    +8/-7     
    table.go
    ...                                                                                                           

    pkg/vm/engine/tae/db/gc/v2/table.go

    ...

    +6/-6     
    version_upgrade.go
    ...                                                                                                           

    pkg/bootstrap/versions/version_upgrade.go

    ...

    +8/-8     
    mergedelete.go
    ...                                                                                                           

    pkg/sql/colexec/mergedelete/mergedelete.go

    ...

    +3/-3     
    read.go
    ...                                                                                                           

    pkg/vm/engine/tae/blockio/read.go

    ...

    +5/-5     
    evalExpression_test.go
    ...                                                                                                           

    pkg/sql/colexec/evalExpression_test.go

    ...

    +3/-3     
    version.go
    ...                                                                                                           

    pkg/bootstrap/versions/version.go

    ...

    +4/-4     
    approx_count.go
    ...                                                                                                           

    pkg/sql/colexec/aggexec/approx_count.go

    ...

    +3/-3     
    batch_test.go
    ...                                                                                                           

    pkg/container/batch/batch_test.go

    ...

    +3/-3     
    column_cache_test.go
    ...                                                                                                           

    pkg/incrservice/column_cache_test.go

    ...

    +4/-4     
    join.go
    ...                                                                                                           

    pkg/sql/colexec/mark/join.go

    ...

    +3/-3     
    show_account_test.go
    ...                                                                                                           

    pkg/frontend/show_account_test.go

    ...

    +2/-2     
    upgrade_tenant_task.go
    ...                                                                                                           

    pkg/bootstrap/versions/upgrade_tenant_task.go

    ...

    +4/-4     
    transfer.go
    ...                                                                                                           

    pkg/vm/engine/disttae/transfer.go

    ...

    +5/-5     
    mnode.go
    ...                                                                                                           

    pkg/vm/engine/tae/tables/mnode.go

    ...

    +3/-3     
    upgrade_strategy.go
    ...                                                                                                           

    pkg/bootstrap/versions/upgrade_strategy.go

    ...

    +5/-5     
    serialize_test.go
    ...                                                                                                           

    pkg/sql/colexec/aggexec/serialize_test.go

    ...

    +4/-3     
    roaring_filter.go
    ...                                                                                                           

    pkg/sql/colexec/fuzzyfilter/roaring_filter.go

    ...

    +3/-3     
    func_prefix.go
    ...                                                                                                           

    pkg/sql/plan/function/func_prefix.go

    ...

    +3/-3     
    functionTools.go
    ...                                                                                                           

    pkg/container/vector/functionTools.go

    ...

    +3/-3     
    handle_debug.go
    ...                                                                                                           

    pkg/vm/engine/tae/rpc/handle_debug.go

    ...

    +5/-5     
    partition_state_test.go
    ...                                                                                                           

    pkg/vm/engine/test/partition_state_test.go

    ...

    +2/-2     
    parquet.go
    ...                                                                                                           

    pkg/sql/colexec/external/parquet.go

    ...

    +2/-2     
    db_test.go
    ...                                                                                                           

    pkg/vm/engine/tae/db/test/db_test.go

    ...

    +2/-2     
    join.go
    ...                                                                                                           

    pkg/sql/colexec/single/join.go

    ...

    +2/-2     
    service_data_event.go
    ...                                                                                                           

    pkg/txn/trace/service_data_event.go

    ...

    +2/-2     
    lock_op_test.go
    ...                                                                                                           

    pkg/sql/colexec/lockop/lock_op_test.go

    ...

    +2/-2     
    join.go
    ...                                                                                                           

    pkg/sql/colexec/anti/join.go

    ...

    +2/-2     
    join.go
    ...                                                                                                           

    pkg/sql/colexec/rightsemi/join.go

    ...

    +2/-2     
    join.go
    ...                                                                                                           

    pkg/sql/colexec/rightanti/join.go

    ...

    +2/-2     
    order_test.go
    ...                                                                                                           

    pkg/sql/colexec/mergeorder/order_test.go

    ...

    +2/-2     
    join.go
    ...                                                                                                           

    pkg/sql/colexec/semi/join.go

    ...

    +2/-2     
    join.go
    ...                                                                                                           

    pkg/sql/colexec/left/join.go

    ...

    +2/-2     
    join.go
    ...                                                                                                           

    pkg/sql/colexec/right/join.go

    ...

    +2/-2     
    func_compare.go
    ...                                                                                                           

    pkg/sql/plan/function/func_compare.go

    ...

    +2/-2     
    generate_series_test.go
    ...                                                                                                           

    pkg/sql/colexec/table_function/generate_series_test.go

    ...

    +2/-2     
    flushTableTail.go
    ...                                                                                                           

    pkg/vm/engine/tae/tables/txnentries/flushTableTail.go

    ...

    +2/-2     
    mergeobjects.go
    ...                                                                                                           

    pkg/vm/engine/tae/tables/txnentries/mergeobjects.go

    ...

    +2/-2     
    zm_test.go
    ...                                                                                                           

    pkg/vm/engine/tae/index/zm_test.go

    ...

    +2/-2     
    stage_util.go
    ...                                                                                                           

    pkg/sql/plan/function/stage_util.go

    ...

    +1/-1     
    reader_test.go
    ...                                                                                                           

    pkg/vm/engine/test/reader_test.go

    ...

    +1/-1     
    samplePool.go
    ...                                                                                                           

    pkg/sql/colexec/sample/samplePool.go

    ...

    +1/-1     
    Additional 37 files not shown
    ...                                                                                                           

    Additional 37 files not shown

    ...

    Additional files (token-limit)extra_file_yaml =
    1 files
    build_insert.go
    ...                                                                                                           

    pkg/sql/plan/build_insert.go

    ...

    +1/-1     

    💡 PR-Agent usage:
    Comment /help on the PR to get a list of all available PR-Agent tools and their descriptions

    @qodo-code-review

    Copy link
    Copy Markdown

    PR-Agent was enabled for this repository. To continue using it, please link your git user with your CodiumAI identity here.

    PR Reviewer Guide 🔍

    ⏱️ Estimated effort to review: 3 🔵🔵🔵⚪⚪
    🧪 PR contains tests
    🔒 No security concerns identified
    ⚡ Key issues to review

    Performance Optimization
    New no-type-check variants of vector operations have been introduced to improve performance by bypassing redundant type checks. These should be carefully reviewed to ensure correctness and that they are used appropriately.

    Code Duplication
    Several functions have been duplicated with "NoTypeCheck" variants. This increases code maintenance burden and could lead to inconsistencies if changes are not applied to both versions.

    Potential Bug
    The new GetFixedAtNoTypeCheck function assumes type checking has been done before calling. This assumption should be clearly documented and enforced to prevent runtime errors.

    @qodo-code-review

    Copy link
    Copy Markdown

    PR-Agent was enabled for this repository. To continue using it, please link your git user with your CodiumAI identity here.

    PR Code Suggestions ✨

    CategorySuggestion                                                                                                                                    Score
    Enhancement
    Refactor repeated code blocks into a generic function to reduce duplication and improve maintainability

    Consider using a single switch statement for all types instead of repeating similar
    code blocks for each type. This can improve code maintainability and reduce
    duplication.

    pkg/sql/util/index_util.go [745-911]

     switch v.GetType().Oid {
     case types.T_bool:
    -    s := vector.MustFixedColNoTypeCheck[bool](v)
    -    ns := make([]bool, 0, length)
    +    compactCol[bool](v, vec, bitMap, proc)
    +case types.T_bit:
    +    compactCol[uint64](v, vec, bitMap, proc)
    +...
    +}
    +
    +func compactCol[T any](v *vector.Vector, vec *vector.Vector, bitMap *nulls.Nulls, proc *process.Process) error {
    +    s := vector.MustFixedColNoTypeCheck[T](v)
    +    ns := make([]T, 0, v.Length())
         for i, b := range s {
             if !nulls.Contains(bitMap, uint64(i)) {
                 ns = append(ns, b)
             }
         }
    -    err = vector.AppendFixedList(vec, ns, nil, proc.Mp())
    -case types.T_bit:
    -    s := vector.MustFixedColNoTypeCheck[uint64](v)
    -    ns := make([]uint64, 0)
    -    for i, b := range s {
    -        if !nulls.Contains(bitMap, uint64(i)) {
    -            ns = append(ns, b)
    -        }
    -    }
    -    err = vector.AppendFixedList(vec, ns, nil, proc.Mp())
    -...
    +    return vector.AppendFixedList(vec, ns, nil, proc.Mp())
    +}
     
    Suggestion importance[1-10]: 9

    Why: The suggestion to refactor repeated code blocks into a generic function significantly improves code maintainability and reduces duplication, making it a valuable enhancement.

    9
    Create a helper function to reduce repetition in test cases for different data types

    Consider using a helper function to reduce repetition in test cases for different
    data types, as the structure of the tests is very similar across all types.

    pkg/container/vector/vector_test.go [605-791]

    -err := AppendFixedList(v, []bool{true, false, true, false}, nil, mp)
    -require.NoError(t, err)
    -v.ShrinkByMask(&bmask, false)
    -vs := MustFixedColWithTypeCheck[bool](v)
    -require.Equal(t, []bool{false, true}, vs)
    -v.Free(mp)
    -require.Equal(t, int64(0), mp.CurrNB())
    +testShrinkByMask := func(t *testing.T, typ interface{}, input []interface{}, expected []interface{}) {
    +    v := NewVec(types.Type(typ))
    +    err := AppendFixedList(v, input, nil, mp)
    +    require.NoError(t, err)
    +    v.ShrinkByMask(&bmask, false)
    +    vs := MustFixedColWithTypeCheck[typ](v)
    +    require.Equal(t, expected, vs)
    +    v.Free(mp)
    +    require.Equal(t, int64(0), mp.CurrNB())
    +}
     
    +testShrinkByMask(t, bool{}, []interface{}{true, false, true, false}, []interface{}{false, true})
    +
    • Apply this suggestion
    Suggestion importance[1-10]: 7

    Why: The suggestion to create a helper function is a good enhancement for reducing code duplication and improving maintainability. It is not critical but provides a significant improvement in code organization and readability.

    7
    Possible bug
    Add bounds checking for index access in vector operations

    In the GetFixedAtNoTypeCheck function, consider adding a bounds check for the idx
    parameter to prevent potential out-of-bounds access.

    pkg/container/vector/vector.go [235-242]

    -func GetFixedAtNoTypeCheck[T any](v *Vector, idx int) T {
    +func GetFixedAtNoTypeCheck[T any](v *Vector, idx int) (T, error) {
     	if v.IsConst() {
     		idx = 0
     	}
     	var slice []T
     	ToSliceNoTypeCheck(v, &slice)
    -	return slice[idx]
    +	if idx < 0 || idx >= len(slice) {
    +		var zero T
    +		return zero, fmt.Errorf("index out of range: %d", idx)
    +	}
    +	return slice[idx], nil
     }
     
    • Apply this suggestion
    Suggestion importance[1-10]: 9

    Why: The suggestion to add bounds checking for index access is important for preventing out-of-bounds errors, which can lead to undefined behavior or crashes. This is a significant improvement in ensuring safe access to vector elements.

    9
    Possible issue
    Add error handling for potential panics in type-checking function calls

    Consider adding error handling for the MustFixedColWithTypeCheck function calls, as
    the "Must" prefix suggests it may panic on failure.

    pkg/container/vector/vector_test.go [147]

    -vs := MustFixedColWithTypeCheck[uint64](v)
    +vs, err := FixedColWithTypeCheck[uint64](v)
    +require.NoError(t, err)
     
    • Apply this suggestion
    Suggestion importance[1-10]: 8

    Why: Adding error handling for the MustFixedColWithTypeCheck function is crucial as it may panic on failure. This suggestion addresses a potential issue that could lead to runtime errors, thus improving the robustness of the code.

    8
    Add null check for vector before performing operations

    In the SetFixedAtNoTypeCheck function, consider adding a check to ensure that the
    vector is not null before performing the operation.

    pkg/container/vector/vector.go [409-419]

     func SetFixedAtNoTypeCheck[T types.FixedSizeT](v *Vector, idx int, t T) error {
    +	if v == nil {
    +		return moerr.NewInternalErrorNoCtxf("vector is nil")
    +	}
     	vacol := MustFixedColNoTypeCheck[T](v)
     	if idx < 0 {
     		idx = len(vacol) + idx
     	}
     	if idx < 0 || idx >= len(vacol) {
     		return moerr.NewInternalErrorNoCtxf("vector idx out of range: %d > %d", idx, len(vacol))
     	}
     	vacol[idx] = t
     	return nil
     }
     
    • Apply this suggestion
    Suggestion importance[1-10]: 7

    Why: Adding a null check for the vector before performing operations is a good practice to prevent potential null pointer dereferences, enhancing the stability of the code. However, this is a minor issue compared to bounds checking.

    7
    Error handling
    Add error handling for potential panics in unsafe operations

    Consider adding error handling for the unsafe.Slice operation in ToSliceNoTypeCheck.
    Although unlikely, it's possible for the operation to panic if the pointer or
    capacity is invalid.

    pkg/container/vector/vector.go [86-88]

    -func ToSliceNoTypeCheck[T any](vec *Vector, ret *[]T) {
    +func ToSliceNoTypeCheck[T any](vec *Vector, ret *[]T) error {
    +	defer func() {
    +		if r := recover(); r != nil {
    +			return fmt.Errorf("panic in ToSliceNoTypeCheck: %v", r)
    +		}
    +	}()
     	*ret = unsafe.Slice((*T)(vec.col.Ptr), vec.col.Cap)
    +	return nil
     }
     
    • Apply this suggestion
    Suggestion importance[1-10]: 8

    Why: Adding error handling for potential panics in unsafe operations is crucial for improving the robustness and reliability of the code. This suggestion correctly addresses a potential issue that could lead to runtime errors.

    8
    Type safety
    Implement type checking for varlen types in string operations

    In the UnsafeGetStringAt function, consider uncommenting and implementing the type
    check for varlen types to ensure type safety.

    pkg/container/vector/vector.go [291-300]

     func (v *Vector) UnsafeGetStringAt(i int) string {
     	if v.IsConst() {
     		i = 0
     	}
    -	// if !v.typ.Oid.IsFixedLen() {
    -	// 	panic(fmt.Sprintf("type mismatch: expect varlen type but actual %s", v.typ.String()))
    -	// }
    +	if v.typ.Oid.IsFixedLen() {
    +		panic(fmt.Sprintf("type mismatch: expect varlen type but actual %s", v.typ.String()))
    +	}
     	var bs []types.Varlena
     	ToSliceNoTypeCheck(v, &bs)
     	return bs[i].UnsafeGetString(v.area)
     }
     
    • Apply this suggestion
    Suggestion importance[1-10]: 8

    Why: Implementing type checking for varlen types is crucial for maintaining type safety and preventing runtime errors due to type mismatches. This suggestion addresses a significant concern regarding type safety in the code.

    8
    Performance
    Pre-allocate slices with estimated capacity to reduce memory allocations

    Consider pre-allocating the slice with an estimated capacity to reduce memory
    allocations and improve performance.

    pkg/sql/util/index_util.go [828]

    -ns := make([]uint64, 0)
    +ns := make([]uint64, 0, v.Length())
     
    • Apply this suggestion
    Suggestion importance[1-10]: 7

    Why: Pre-allocating slices with an estimated capacity is a good performance optimization, reducing memory allocations and potentially improving execution speed.

    7
    Best practice
    Use more descriptive variable names to improve code readability

    Consider using a more descriptive variable name instead of 'b' to improve code
    readability.

    pkg/sql/util/index_util.go [829-833]

    -for i, b := range s {
    +for i, value := range s {
         if !nulls.Contains(bitMap, uint64(i)) {
    -        ns = append(ns, b)
    +        ns = append(ns, value)
         }
     }
     
    • Apply this suggestion
    Suggestion importance[1-10]: 6

    Why: Using more descriptive variable names enhances code readability, which is a best practice, although it is a minor improvement compared to functional changes.

    6
    Maintainability
    Ensure consistent naming convention for type-checking functions across all data types

    Consider using a consistent naming convention for the MustFixedColWithTypeCheck
    function across all data types to improve code readability and maintainability.

    pkg/container/vector/vector_test.go [147-484]

    +vs := MustFixedColWithTypeCheck[uint64](v)
    +...
    +vs := MustFixedColWithTypeCheck[int8](v)
    +...
    +vs := MustFixedColWithTypeCheck[types.Date](v)
     
    -
    Suggestion importance[1-10]: 5

    Why: While the suggestion to use a consistent naming convention is valid for maintainability, it does not address a critical issue or bug. It is a minor improvement for readability and consistency.

    5

    @XuPeng-SH

    Copy link
    Copy Markdown
    Contributor Author
    for i:=0; i<vec.Length(); i++ {
          // Here GetFixedAt do type check every time
          val := vector.GetFixedAt[int32](vec, i)
    }

    @sukki37
    sukki37 merged commit bbe0060 into matrixorigin:main Sep 5, 2024
    daviszhen added a commit to daviszhen/matrixone that referenced this pull request Sep 12, 2024
    * remove mergingObjs check (matrixorigin#18482)
    
    * forbidden restore database or table to other account (matrixorigin#18337)
    
    forbidden restore database or table to other account
    
    Approved by: @iamlinjunhong, @heni02
    
    * Fix Ceiling (matrixorigin#18479)
    
    https://github.com/matrixorigin/MO-Cloud/issues/3955
    
    Approved by: @aunjgr, @heni02
    
    * fileservice: release semaphore after reader close in objectStorageSemaphore.Read (matrixorigin#18463)
    
    should hold the semaphore during the Read, otherwise it will not limit the I/O concurrency to S3.
    
    Approved by: @fengttt
    
    * cn commit tombstone objects to tn. (matrixorigin#18423)
    
    remove delta location, using object stats instead.
    
    Approved by: @daviszhen, @zhangxu19830126, @reusee, @LeftHandCold, @m-schen, @XuPeng-SH, @triump2020, @aunjgr
    
    * malloc: use unique.Handle in GetStacktrace (matrixorigin#18489)
    
    use the unique package to reduce memory consumption
    
    Approved by: @m-schen
    
    * Fengttt conn (matrixorigin#18421)
    
    Repro matrixorigin#18420
    
    Approved by: @reusee, @zhangxu19830126, @daviszhen, @qingxinhome
    
    * fileservice: do disk cache eviction after loading and before writing files (matrixorigin#18394)
    
    more eviction
    
    Approved by: @fengttt
    
    * print debug message when waiting message timeout (matrixorigin#18468)
    
    print debug message when waiting message timeout
    return err instead of panic
    
    Approved by: @fengttt, @aunjgr, @m-schen
    
    * refactor tombstone read related code (matrixorigin#18506)
    
    refactor tombstone related code for further usage
    
    Approved by: @triump2020, @LeftHandCold
    
    * fix mpool leak (matrixorigin#18493)
    
    1. close abort vector
    2. close object batches
    
    Approved by: @XuPeng-SH
    
    * refactoring dispatch scopes  (matrixorigin#18462)
    
    运行时展开pipeline,目前对dispatch算子有些特别处理。
    现在将相关逻辑移动到compile阶段,并对其进行简化。
    好处一是简化运行时的逻辑,方便后续连接pipeline,二是运行之前就能看到完整的pipeline,便于调试问题
    修复了一处导致daily run hang住的bug
    
    Approved by: @ouyuanning, @fengttt, @aunjgr, @sukki37, @heni02
    
    * fix the condition for runtime filters (matrixorigin#18496)
    
    fix the condition for runtime filters, try to push runtime filters in more cases.
    fix some comment
    
    Approved by: @aunjgr
    
    * remove restriction for top value optimization (matrixorigin#18503)
    
    sometimes the stats for filters are wrong, and top value optimization will be disabled.
    remove restriction for top value optimization
    
    Approved by: @aunjgr, @heni02
    
    * Change the type string in SHOW CREATE TABLE to lowercase (matrixorigin#18380)
    
    Change the type string in SHOW CREATE TABLE to lowercase, consistent with MySQL, aim to be compatible with Python SQLAlchemy
    
    Approved by: @ck89119, @aunjgr, @heni02
    
    * fix suspend not effect in main (matrixorigin#18491)
    
    fix suspend not effect in main
    
    Approved by: @daviszhen, @reusee, @sukki37
    
    * fix too early return in processLoadLocal (matrixorigin#18498)
    
    修复load local逻辑中函数过早返回而没有读完client发送的数据包
    
    Approved by: @daviszhen
    
    * release hashmap memory when input batch rowcnt is 0 (matrixorigin#18514)
    
    release hashmap memory when input batch rowcnt is 0
    
    Approved by: @m-schen, @aunjgr
    
    * fix reading of deleted data (matrixorigin#18511)
    
    fix unmatched column sizes in a read batch
    
    Approved by: @XuPeng-SH
    
    * refactor the run method of pipelines (matrixorigin#18510)
    
    mo的pipeline运行方式有四种,remoterun,mergerun,parallelrun and normalrun.
    remoterun发送到远端cn执行。 mergerun在协程中运行所有prescope并监控对应返回。
    parallelrun在运行时展开scope,normalrun直接从rootOp算子开始call。
    以前pipeline断开比较碎,run方法可以写的很简单,现在将pipeline进行连接以后,需要更复杂的run方法。
    一条pipeline可能同时经历remoterun->mergerun->parallelrun->normalrun
    
    Approved by: @m-schen
    
    * code refactoring of some pipelines (matrixorigin#18525)
    
    refactor insert scope and delete merge scope, reuse some logic to make code more clear.
    optimize shuffle scopes to break after shuffle operator.
    remove unused code
    
    Approved by: @ouyuanning, @heni02
    
    * add UT for S3 Delete (matrixorigin#18519)
    
    add UT for S3 Delete
    
    Approved by: @XuPeng-SH
    
    * remove unused code (matrixorigin#18517)
    
    remove unused code
    
    Approved by: @LeftHandCold, @triump2020
    
    * Fix data race (matrixorigin#18536)
    
    fix data race
    
    Approved by: @LeftHandCold
    
    * fix bug: make sure vector will be free in some case (matrixorigin#18490)
    
    fix bug: make sure vector will be free in some case
    
    Approved by: @m-schen, @badboynt1, @aunjgr, @fengttt
    
    * fix TestGetInitPort (matrixorigin#18528)
    
    fix TestGetInitPort
    
    Approved by: @reusee
    
    * fix disttae mpool leak (matrixorigin#18509)
    
    fix disttae mem leak
    
    Approved by: @triump2020, @XuPeng-SH
    
    * fix transfer page race (matrixorigin#18548)
    
    fix transfer page race
    
    Approved by: @XuPeng-SH
    
    * refactor pipelines of broadcast join to reduce pipeline break (matrixorigin#18549)
    
    refactor pipelines of broadcast join to reduce pipeline break
    remove unused codes to make code more clear
    
    Approved by: @ouyuanning, @m-schen, @heni02, @aunjgr
    
    * avoid redundant and time-consuming type check operation using vector api (matrixorigin#18505)
    
    * remove transfer delete log (matrixorigin#18560)
    
    * add test case for create partition based shard table  (matrixorigin#18515)
    
    add test case for create partition based shard table
    
    Approved by: @m-schen, @triump2020, @badboynt1, @reusee, @daviszhen, @qingxinhome, @ouyuanning, @aressu1985, @heni02, @LeftHandCold, @aunjgr
    
    * fix ut TestManyRangeLockInManyGoroutines data race (matrixorigin#18478)
    
    fix ut TestManyRangeLockInManyGoroutines data race
    
    Approved by: @zhangxu19830126
    
    * save transfer page memory usage (matrixorigin#18557)
    
    save transfer page memory usage
    
    Approved by: @XuPeng-SH
    
    * fix a bug that sometimes hashmap is not released (matrixorigin#18554)
    
    fix a bug that sometimes hashmap is not released.
    free memory when query finished.
    
    Approved by: @m-schen, @aunjgr
    
    * fix: buildload LoadWriteS3 (matrixorigin#18556)
    
    buildload函数里面对builder.qry.LoadWriteS3的设置条件写反了
    
    Approved by: @badboynt1
    
    * Supplement v1.2.3 version upgrade package (matrixorigin#18431)
    
    Supplement v1.2.3 version upgrade package
    
    Approved by: @daviszhen, @zhangxu19830126, @LeftHandCold
    
    * refactor: value_scan (matrixorigin#18460)
    
    move constructValueScanBatch to value_scan
    
    Approved by: @ouyuanning, @aunjgr, @m-schen
    
    * support group by with rollup in parser (matrixorigin#18526)
    
    support group by with rollup in parser
    
    Approved by: @iamlinjunhong, @ouyuanning
    
    * Fix some data race in frontend (matrixorigin#18545)
    
    Fix some data race in frontend.Conn
    
    Approved by: @daviszhen
    
    * fix TransferDeleteIntent for S3 tombstone (matrixorigin#18541)
    
    fix TransferDeleteIntent
    
    Approved by: @zhangxu19830126, @XuPeng-SH
    
    * update CODEOWNERS (matrixorigin#18552)
    
    * fix checkpoint entry use after clean (matrixorigin#18580)
    
    * add sharding replica balance test case (matrixorigin#18566)
    
    Add cluster sharding test case for replica balance. Replica can be re-balance if cn added to the cluster or remove from cluster.
    
    Approved by: @daviszhen, @reusee
    
    * fileservice: re-implement memory cache with fifocache (matrixorigin#18569)
    
    re-implement memory cache with fifocache
    
    Approved by: @fengttt, @LeftHandCold
    
    * reduce *Conn.Read syscall (matrixorigin#18379)
    
    improve *Conn.Read
    In most cases, only one syscall
    
    Approved by: @daviszhen
    
    * delay ranges call for dml queries [part 1] (matrixorigin#18581)
    
    delay ranges call for dml queries [part 1]
    
    Approved by: @ouyuanning
    
    * optimize shuffle plans (matrixorigin#18570)
    
    在pipeline重构以后,由于shuffle的pipeline总是断开的,会产生额外的拷贝开销,所以shuffle的代价需要重新计算。
    
    Approved by: @ouyuanning, @heni02
    
    * Aggr statements with same error msg and keep the error msg info (matrixorigin#18537)
    
    changes:
    - aggr erorr statement filter with same error msg.
    
    Approved by: @heni02
    
    * optimize insert pipelines to reduce pipeline berak (matrixorigin#18574)
    
    optimize insert pipelines to reduce pipeline berak
    remove some unused code
    
    Approved by: @ouyuanning
    
    * skip restart cn test case (matrixorigin#18607)
    
    * reduce insert memory usage (matrixorigin#18542)
    
    Clean batches in s3writer right after its used.
    
    Replace `GetUnionOneFunction` with `GetUnionAllFunction` to reduce memory allocation.
    
    before this pr:
    ![main](https://github.com/user-attachments/assets/48b45f6c-9882-4b4e-8a3a-3c7f828218fe)
    
    after this pr:
    ![refactor](https://github.com/user-attachments/assets/e4fd75e5-b2b2-4d3e-8a2c-9b7d7ea44c3f)
    
    Approved by: @XuPeng-SH, @aunjgr, @m-schen
    
    * adapt old config observablity::metricUpdateStorageUsageInterval (matrixorigin#18573)
    
    1. adapt mo 1.2 config item which renamed.
    
    Approved by: @daviszhen
    
    * Upgrade panic bug main (matrixorigin#18550)
    
    Resolve horizontal upgrade exception handling for the same version
    
    Approved by: @daviszhen, @zhangxu19830126
    
    * optimize pipelines for external scan to reduce pipeline breaks (matrixorigin#18612)
    
    load data inline语句,总是单并发的
    load data local,或者压缩的文件,读总是单并发的,写的并发度需要根据大小来决定,并不总是满并发。
    
    Approved by: @ouyuanning
    
    * fix panic in ut (matrixorigin#18582)
    
    - Remove the panic check inside CheckFlushTaskRetry and collectDelsAndTransfer. It's safe to retry this task.
    
    Approved by: @XuPeng-SH
    
    * fix: 修改load strict参数默认行为 (matrixorigin#18587)
    
    修改load data strict参数的默认行为,默认值由false改为true, 与文档保持一致
    
    Approved by: @iamlinjunhong, @badboynt1
    
    * mpool: remove memHdr.allocateStacktraceID (matrixorigin#18579)
    
    should not put unique.Handle field in memHdr.
    
    Approved by: @m-schen
    
    * container/hashtable: replace mpool with malloc (matrixorigin#18446)
    
    hashtable: add getAllocator
    
    container/hashtable: use malloc in string hashtable
    
    container/hashtable: use malloc in int64 hashtable
    
    Approved by: @badboynt1, @m-schen, @aunjgr, @XuPeng-SH
    
    * refactor some code for the future code reuse for disttae and tae (matrixorigin#18564)
    
    1. remove unused vector pool in the Read api
    2. code refactor for the future code reuse for disttae and tae
    
    Approved by: @ouyuanning, @daviszhen, @LeftHandCold, @reusee, @triump2020, @m-schen, @aunjgr
    
    * fileservice: object storage semaphore refinements  (matrixorigin#18543)
    
    fileservice: also acquire semaphore in List and Write
    
    fileservice: set default IO concurrency to 1024
    
    fileservice: ensure semaphore is release when error
    
    Approved by: @fengttt
    
    * Refactor block prefetch (matrixorigin#18626)
    
    The Prefetch interface is redundant and unnecessary interfaces and parameters need to be removed.
    
    Approved by: @XuPeng-SH
    
    * Incr blob size limit and clean up. (matrixorigin#18508)
    
    Incr max blob size and code cleanup.
    
    Approved by: @aressu1985, @heni02, @m-schen, @XuPeng-SH
    
    * add more sharding metrics (matrixorigin#18628)
    
    add more sharding metrics
    
    Approved by: @aptend
    
    * Optimize select count (matrixorigin#18627)
    
    1. fix previous false positive logic
    2. only check object metadata
    3. todo: refactor whole select count(*) later
    
    Approved by: @triump2020, @LeftHandCold
    
    * Adding a create db test. (matrixorigin#18576)
    
    Adding a test
    
    Approved by: @zhangxu19830126
    
    * adding flag to block info and object info (matrixorigin#18527)
    
    flag:
    1. dependable
    2. sorted
    3. by cn created.
    
    Approved by: @daviszhen, @ouyuanning, @aunjgr, @m-schen, @XuPeng-SH, @LeftHandCold, @triump2020
    
    * some code refactor (matrixorigin#18633)
    
    1. refactor some code for the future code reuse
    2. remove dummy code
    3. remove stale stats related code
    
    Approved by: @LeftHandCold, @triump2020
    
    * adding object count metric for accounts. (matrixorigin#18363)
    
    adding object count metric for accounts.
    
    Approved by: @daviszhen, @aptend, @heni02, @XuPeng-SH, @zhangxu19830126, @qingxinhome, @xzxiong
    
    * [Subtask]: reduce shuffle memory allocation step 1 (matrixorigin#18616)
    
    从shuffle算子中抽象出shufflePool对象,为接下来多并发的shuffle算子共用同一个pool做准备
    
    Approved by: @ouyuanning
    
    * retry lock without lock table (matrixorigin#18611)
    
    retry lock without lock table
    
    Approved by: @m-schen, @daviszhen, @reusee, @zhangxu19830126, @XuPeng-SH, @qingxinhome
    
    * support rename multi table (matrixorigin#18572)
    
    support rename multi table
    
    Approved by: @iamlinjunhong, @ouyuanning, @m-schen, @heni02, @qingxinhome, @daviszhen, @aunjgr
    
    * Fix test dedup snapshot3 (matrixorigin#18639)
    
    Fix test dedup snapshot3, update StartTS instead of SnapshotTS
    
    Approved by: @XuPeng-SH
    
    * [Bug]: performance regression of loading compressed file (matrixorigin#18644)
    
    fix a bug in external scan stats which cause performance regression
    
    Approved by: @ouyuanning
    
    * [refactor] : reuse memory for insert/delete partition table (matrixorigin#18617)
    
    之前对于分区表的insert和delete, 每次使用的batch都是新创建出来的(见原来的GroupByPartitionForDelete和GroupByPartitionForInsert).
    
    现在让它们复用算子自带的buffer
    
    Approved by: @m-schen
    
    * hashtable: add memory limit checks (matrixorigin#18646)
    
    to ensure the hashtable is not allocating excessive memory.
    
    Approved by: @XuPeng-SH, @aunjgr
    
    * refactor: preinsert (matrixorigin#18516)
    
    preinsert, 对于复合主键,cluster by,提前申请内存并复用。
    
    Approved by: @badboynt1, @ouyuanning, @m-schen, @aunjgr
    
    * dispatch operator must be in a pipeline with single parallel (matrixorigin#18659)
    
    在pipeline重构过程中,为了减少pipeline的打断,尝试让dispatch算子也支持多并发。
    但是这个尝试过程中遇到了很多问题。现在先将这一逻辑回退,让dispatch算子保持单并发。
    
    Approved by: @ouyuanning
    
    * remove persisted tombstones merge during flush (matrixorigin#18660)
    
    do not merge persisted tombstones during flush
    
    Approved by: @XuPeng-SH
    
    * fix build plan pb (matrixorigin#18653)
    
    fix build plan pb
    
    Approved by: @ouyuanning, @aunjgr
    
    * fix ut (matrixorigin#18657)
    
    fix data race
    
    Approved by: @XuPeng-SH
    
    * fix types.Rowid|types.Blockid compare related (matrixorigin#18635)
    
    1. Roiwd and Blockid are using bytes.Compare, while byte order does not indicate the actual order of Rowid and Blockid
    2. without this fix, the order of Rowid in the tombstone file is disordered and it will cause data loss during scan
    3. Without this fix, the rowid column zone map may be wrong
    4. This PR also improve the performance of Blockid.Compare|Objectid.Compare|Rowid.Compare
    
    Approved by: @LeftHandCold, @badboynt1, @ouyuanning, @aunjgr, @m-schen, @triump2020
    
    * bug fix: Top Operator should not change input batch (matrixorigin#18658)
    
    bug fix: Top Operator should not change input batch
    
    Approved by: @heni02, @m-schen
    
    * Refactor join node compilation analyze (matrixorigin#18665)
    
    Fix and refactor the compilation and analysis of the join nodes:
    
    Approved by: @badboynt1, @ouyuanning, @m-schen
    
    * New operator analyzer design (matrixorigin#18332)
    
    * [bug] logtail: clear the tables in global stats when logtail re-connect (matrixorigin#18675)
    
    clear the tables in global stats when logtail re-connect
    
    Approved by: @LeftHandCold, @XuPeng-SH
    
    * fix select version (matrixorigin#18670)
    
    fix select version
    
    Approved by: @heni02, @qingxinhome
    
    * fix a bug that cause load performance regression when there is sink_scan node in plan (matrixorigin#18682)
    
    fix a bug that cause load performance regression when there is sink_scan node in plan
    
    Approved by: @ouyuanning
    
    * fix replay incomplete data to catalog cache (matrixorigin#18662)
    
    The system must complete the catalog cache replay before it can process the push logtail for the three tables.
    
    Approved by: @XuPeng-SH
    
    * fix non reserved keyword period (matrixorigin#18640)
    
    fix non reserved keyword period
    
    Approved by: @m-schen
    
    * using pointers as function arguments to avoid relying on golang compiler optimizations (matrixorigin#18693)
    
    using pointers as function arguments to avoid relying on golang compiler optimizations.
    
    The compiler sometimes chooses to allocate memory on the heap for passed parameters, leading to performance degradation
    
    <img width="1789" alt="image" src="https://github.com/user-attachments/assets/6a9b6a89-205b-4501-800d-02cb1a6ae167">
    
    
    The compiler sometimes chooses to allocate memory on the heap for passed parameters, leading to performance degradation
    
    <img width="1792" alt="image" src="https://github.com/user-attachments/assets/edfc8d8e-8d12-430a-ac4d-ec421396805d">
    
    Approved by: @LeftHandCold, @triump2020
    
    * add restart txn interface for reuse txn operator (matrixorigin#18700)
    
    Add restart txn interface for reuse txn operator to avoid mem allocate.
    
    Approved by: @daviszhen, @reusee, @qingxinhome
    
    * avoid metadata cache access heap allocation (matrixorigin#18699)
    
    Prev:
    <img width="1792" alt="image" src="https://github.com/user-attachments/assets/b5927e30-6a6d-4a30-8d68-8d67b5085f38">
    
    Now:
    <img width="1792" alt="image" src="https://github.com/user-attachments/assets/72dc4b1c-b9be-4f9a-9709-9f28fdfc72cc">
    
    Approved by: @LeftHandCold, @triump2020
    
    * malloc: optimize profiler (matrixorigin#18703)
    
    malloc: make decorator types generic
    
    malloc: add cacheline padding to ShardedAllocator
    
    Approved by: @qingxinhome
    
    * refactor merge scheduler (matrixorigin#18531)
    
    refactor merge scheduler
    
    Approved by: @aptend, @daviszhen, @XuPeng-SH
    
    * bug fix: unique key/secondary key get incorrect value (matrixorigin#18711)
    
    bug fix: unique key/secondary key get incorrect value
    
    Approved by: @heni02, @badboynt1, @aunjgr
    
    * merge main
    
    ---------
    
    Co-authored-by: Wei Ziran <[email protected]>
    Co-authored-by: YANGGMM <[email protected]>
    Co-authored-by: zengyan1 <[email protected]>
    Co-authored-by: reusee <[email protected]>
    Co-authored-by: gouhongshen <[email protected]>
    Co-authored-by: fengttt <[email protected]>
    Co-authored-by: nitao <[email protected]>
    Co-authored-by: XuPeng-SH <[email protected]>
    Co-authored-by: jiangxinmeng1 <[email protected]>
    Co-authored-by: CJKkkk_ <[email protected]>
    Co-authored-by: aptend <[email protected]>
    Co-authored-by: ou yuanning <[email protected]>
    Co-authored-by: fagongzi <[email protected]>
    Co-authored-by: Wenbin <[email protected]>
    Co-authored-by: iamlinjunhong <[email protected]>
    Co-authored-by: huby2358 <[email protected]>
    Co-authored-by: qingxinhome <[email protected]>
    Co-authored-by: Jackson <[email protected]>
    Co-authored-by: GreatRiver <[email protected]>
    Co-authored-by: Jensen <[email protected]>
    Co-authored-by: LiuBo <[email protected]>
    daviszhen added a commit to daviszhen/matrixone that referenced this pull request Sep 12, 2024
    * remove mergingObjs check (matrixorigin#18482)
    
    * forbidden restore database or table to other account (matrixorigin#18337)
    
    forbidden restore database or table to other account
    
    Approved by: @iamlinjunhong, @heni02
    
    * Fix Ceiling (matrixorigin#18479)
    
    https://github.com/matrixorigin/MO-Cloud/issues/3955
    
    Approved by: @aunjgr, @heni02
    
    * fileservice: release semaphore after reader close in objectStorageSemaphore.Read (matrixorigin#18463)
    
    should hold the semaphore during the Read, otherwise it will not limit the I/O concurrency to S3.
    
    Approved by: @fengttt
    
    * cn commit tombstone objects to tn. (matrixorigin#18423)
    
    remove delta location, using object stats instead.
    
    Approved by: @daviszhen, @zhangxu19830126, @reusee, @LeftHandCold, @m-schen, @XuPeng-SH, @triump2020, @aunjgr
    
    * malloc: use unique.Handle in GetStacktrace (matrixorigin#18489)
    
    use the unique package to reduce memory consumption
    
    Approved by: @m-schen
    
    * Fengttt conn (matrixorigin#18421)
    
    Repro matrixorigin#18420
    
    Approved by: @reusee, @zhangxu19830126, @daviszhen, @qingxinhome
    
    * fileservice: do disk cache eviction after loading and before writing files (matrixorigin#18394)
    
    more eviction
    
    Approved by: @fengttt
    
    * print debug message when waiting message timeout (matrixorigin#18468)
    
    print debug message when waiting message timeout
    return err instead of panic
    
    Approved by: @fengttt, @aunjgr, @m-schen
    
    * refactor tombstone read related code (matrixorigin#18506)
    
    refactor tombstone related code for further usage
    
    Approved by: @triump2020, @LeftHandCold
    
    * fix mpool leak (matrixorigin#18493)
    
    1. close abort vector
    2. close object batches
    
    Approved by: @XuPeng-SH
    
    * refactoring dispatch scopes  (matrixorigin#18462)
    
    运行时展开pipeline,目前对dispatch算子有些特别处理。
    现在将相关逻辑移动到compile阶段,并对其进行简化。
    好处一是简化运行时的逻辑,方便后续连接pipeline,二是运行之前就能看到完整的pipeline,便于调试问题
    修复了一处导致daily run hang住的bug
    
    Approved by: @ouyuanning, @fengttt, @aunjgr, @sukki37, @heni02
    
    * fix the condition for runtime filters (matrixorigin#18496)
    
    fix the condition for runtime filters, try to push runtime filters in more cases.
    fix some comment
    
    Approved by: @aunjgr
    
    * remove restriction for top value optimization (matrixorigin#18503)
    
    sometimes the stats for filters are wrong, and top value optimization will be disabled.
    remove restriction for top value optimization
    
    Approved by: @aunjgr, @heni02
    
    * Change the type string in SHOW CREATE TABLE to lowercase (matrixorigin#18380)
    
    Change the type string in SHOW CREATE TABLE to lowercase, consistent with MySQL, aim to be compatible with Python SQLAlchemy
    
    Approved by: @ck89119, @aunjgr, @heni02
    
    * fix suspend not effect in main (matrixorigin#18491)
    
    fix suspend not effect in main
    
    Approved by: @daviszhen, @reusee, @sukki37
    
    * fix too early return in processLoadLocal (matrixorigin#18498)
    
    修复load local逻辑中函数过早返回而没有读完client发送的数据包
    
    Approved by: @daviszhen
    
    * release hashmap memory when input batch rowcnt is 0 (matrixorigin#18514)
    
    release hashmap memory when input batch rowcnt is 0
    
    Approved by: @m-schen, @aunjgr
    
    * fix reading of deleted data (matrixorigin#18511)
    
    fix unmatched column sizes in a read batch
    
    Approved by: @XuPeng-SH
    
    * refactor the run method of pipelines (matrixorigin#18510)
    
    mo的pipeline运行方式有四种,remoterun,mergerun,parallelrun and normalrun.
    remoterun发送到远端cn执行。 mergerun在协程中运行所有prescope并监控对应返回。
    parallelrun在运行时展开scope,normalrun直接从rootOp算子开始call。
    以前pipeline断开比较碎,run方法可以写的很简单,现在将pipeline进行连接以后,需要更复杂的run方法。
    一条pipeline可能同时经历remoterun->mergerun->parallelrun->normalrun
    
    Approved by: @m-schen
    
    * code refactoring of some pipelines (matrixorigin#18525)
    
    refactor insert scope and delete merge scope, reuse some logic to make code more clear.
    optimize shuffle scopes to break after shuffle operator.
    remove unused code
    
    Approved by: @ouyuanning, @heni02
    
    * add UT for S3 Delete (matrixorigin#18519)
    
    add UT for S3 Delete
    
    Approved by: @XuPeng-SH
    
    * remove unused code (matrixorigin#18517)
    
    remove unused code
    
    Approved by: @LeftHandCold, @triump2020
    
    * Fix data race (matrixorigin#18536)
    
    fix data race
    
    Approved by: @LeftHandCold
    
    * fix bug: make sure vector will be free in some case (matrixorigin#18490)
    
    fix bug: make sure vector will be free in some case
    
    Approved by: @m-schen, @badboynt1, @aunjgr, @fengttt
    
    * fix TestGetInitPort (matrixorigin#18528)
    
    fix TestGetInitPort
    
    Approved by: @reusee
    
    * fix disttae mpool leak (matrixorigin#18509)
    
    fix disttae mem leak
    
    Approved by: @triump2020, @XuPeng-SH
    
    * fix transfer page race (matrixorigin#18548)
    
    fix transfer page race
    
    Approved by: @XuPeng-SH
    
    * refactor pipelines of broadcast join to reduce pipeline break (matrixorigin#18549)
    
    refactor pipelines of broadcast join to reduce pipeline break
    remove unused codes to make code more clear
    
    Approved by: @ouyuanning, @m-schen, @heni02, @aunjgr
    
    * avoid redundant and time-consuming type check operation using vector api (matrixorigin#18505)
    
    * remove transfer delete log (matrixorigin#18560)
    
    * add test case for create partition based shard table  (matrixorigin#18515)
    
    add test case for create partition based shard table
    
    Approved by: @m-schen, @triump2020, @badboynt1, @reusee, @daviszhen, @qingxinhome, @ouyuanning, @aressu1985, @heni02, @LeftHandCold, @aunjgr
    
    * fix ut TestManyRangeLockInManyGoroutines data race (matrixorigin#18478)
    
    fix ut TestManyRangeLockInManyGoroutines data race
    
    Approved by: @zhangxu19830126
    
    * save transfer page memory usage (matrixorigin#18557)
    
    save transfer page memory usage
    
    Approved by: @XuPeng-SH
    
    * fix a bug that sometimes hashmap is not released (matrixorigin#18554)
    
    fix a bug that sometimes hashmap is not released.
    free memory when query finished.
    
    Approved by: @m-schen, @aunjgr
    
    * fix: buildload LoadWriteS3 (matrixorigin#18556)
    
    buildload函数里面对builder.qry.LoadWriteS3的设置条件写反了
    
    Approved by: @badboynt1
    
    * Supplement v1.2.3 version upgrade package (matrixorigin#18431)
    
    Supplement v1.2.3 version upgrade package
    
    Approved by: @daviszhen, @zhangxu19830126, @LeftHandCold
    
    * refactor: value_scan (matrixorigin#18460)
    
    move constructValueScanBatch to value_scan
    
    Approved by: @ouyuanning, @aunjgr, @m-schen
    
    * support group by with rollup in parser (matrixorigin#18526)
    
    support group by with rollup in parser
    
    Approved by: @iamlinjunhong, @ouyuanning
    
    * Fix some data race in frontend (matrixorigin#18545)
    
    Fix some data race in frontend.Conn
    
    Approved by: @daviszhen
    
    * fix TransferDeleteIntent for S3 tombstone (matrixorigin#18541)
    
    fix TransferDeleteIntent
    
    Approved by: @zhangxu19830126, @XuPeng-SH
    
    * update CODEOWNERS (matrixorigin#18552)
    
    * fix checkpoint entry use after clean (matrixorigin#18580)
    
    * add sharding replica balance test case (matrixorigin#18566)
    
    Add cluster sharding test case for replica balance. Replica can be re-balance if cn added to the cluster or remove from cluster.
    
    Approved by: @daviszhen, @reusee
    
    * fileservice: re-implement memory cache with fifocache (matrixorigin#18569)
    
    re-implement memory cache with fifocache
    
    Approved by: @fengttt, @LeftHandCold
    
    * reduce *Conn.Read syscall (matrixorigin#18379)
    
    improve *Conn.Read
    In most cases, only one syscall
    
    Approved by: @daviszhen
    
    * delay ranges call for dml queries [part 1] (matrixorigin#18581)
    
    delay ranges call for dml queries [part 1]
    
    Approved by: @ouyuanning
    
    * optimize shuffle plans (matrixorigin#18570)
    
    在pipeline重构以后,由于shuffle的pipeline总是断开的,会产生额外的拷贝开销,所以shuffle的代价需要重新计算。
    
    Approved by: @ouyuanning, @heni02
    
    * Aggr statements with same error msg and keep the error msg info (matrixorigin#18537)
    
    changes:
    - aggr erorr statement filter with same error msg.
    
    Approved by: @heni02
    
    * optimize insert pipelines to reduce pipeline berak (matrixorigin#18574)
    
    optimize insert pipelines to reduce pipeline berak
    remove some unused code
    
    Approved by: @ouyuanning
    
    * skip restart cn test case (matrixorigin#18607)
    
    * reduce insert memory usage (matrixorigin#18542)
    
    Clean batches in s3writer right after its used.
    
    Replace `GetUnionOneFunction` with `GetUnionAllFunction` to reduce memory allocation.
    
    before this pr:
    ![main](https://github.com/user-attachments/assets/48b45f6c-9882-4b4e-8a3a-3c7f828218fe)
    
    after this pr:
    ![refactor](https://github.com/user-attachments/assets/e4fd75e5-b2b2-4d3e-8a2c-9b7d7ea44c3f)
    
    Approved by: @XuPeng-SH, @aunjgr, @m-schen
    
    * adapt old config observablity::metricUpdateStorageUsageInterval (matrixorigin#18573)
    
    1. adapt mo 1.2 config item which renamed.
    
    Approved by: @daviszhen
    
    * Upgrade panic bug main (matrixorigin#18550)
    
    Resolve horizontal upgrade exception handling for the same version
    
    Approved by: @daviszhen, @zhangxu19830126
    
    * optimize pipelines for external scan to reduce pipeline breaks (matrixorigin#18612)
    
    load data inline语句,总是单并发的
    load data local,或者压缩的文件,读总是单并发的,写的并发度需要根据大小来决定,并不总是满并发。
    
    Approved by: @ouyuanning
    
    * fix panic in ut (matrixorigin#18582)
    
    - Remove the panic check inside CheckFlushTaskRetry and collectDelsAndTransfer. It's safe to retry this task.
    
    Approved by: @XuPeng-SH
    
    * fix: 修改load strict参数默认行为 (matrixorigin#18587)
    
    修改load data strict参数的默认行为,默认值由false改为true, 与文档保持一致
    
    Approved by: @iamlinjunhong, @badboynt1
    
    * mpool: remove memHdr.allocateStacktraceID (matrixorigin#18579)
    
    should not put unique.Handle field in memHdr.
    
    Approved by: @m-schen
    
    * container/hashtable: replace mpool with malloc (matrixorigin#18446)
    
    hashtable: add getAllocator
    
    container/hashtable: use malloc in string hashtable
    
    container/hashtable: use malloc in int64 hashtable
    
    Approved by: @badboynt1, @m-schen, @aunjgr, @XuPeng-SH
    
    * refactor some code for the future code reuse for disttae and tae (matrixorigin#18564)
    
    1. remove unused vector pool in the Read api
    2. code refactor for the future code reuse for disttae and tae
    
    Approved by: @ouyuanning, @daviszhen, @LeftHandCold, @reusee, @triump2020, @m-schen, @aunjgr
    
    * fileservice: object storage semaphore refinements  (matrixorigin#18543)
    
    fileservice: also acquire semaphore in List and Write
    
    fileservice: set default IO concurrency to 1024
    
    fileservice: ensure semaphore is release when error
    
    Approved by: @fengttt
    
    * Refactor block prefetch (matrixorigin#18626)
    
    The Prefetch interface is redundant and unnecessary interfaces and parameters need to be removed.
    
    Approved by: @XuPeng-SH
    
    * Incr blob size limit and clean up. (matrixorigin#18508)
    
    Incr max blob size and code cleanup.
    
    Approved by: @aressu1985, @heni02, @m-schen, @XuPeng-SH
    
    * add more sharding metrics (matrixorigin#18628)
    
    add more sharding metrics
    
    Approved by: @aptend
    
    * Optimize select count (matrixorigin#18627)
    
    1. fix previous false positive logic
    2. only check object metadata
    3. todo: refactor whole select count(*) later
    
    Approved by: @triump2020, @LeftHandCold
    
    * Adding a create db test. (matrixorigin#18576)
    
    Adding a test
    
    Approved by: @zhangxu19830126
    
    * adding flag to block info and object info (matrixorigin#18527)
    
    flag:
    1. dependable
    2. sorted
    3. by cn created.
    
    Approved by: @daviszhen, @ouyuanning, @aunjgr, @m-schen, @XuPeng-SH, @LeftHandCold, @triump2020
    
    * some code refactor (matrixorigin#18633)
    
    1. refactor some code for the future code reuse
    2. remove dummy code
    3. remove stale stats related code
    
    Approved by: @LeftHandCold, @triump2020
    
    * adding object count metric for accounts. (matrixorigin#18363)
    
    adding object count metric for accounts.
    
    Approved by: @daviszhen, @aptend, @heni02, @XuPeng-SH, @zhangxu19830126, @qingxinhome, @xzxiong
    
    * [Subtask]: reduce shuffle memory allocation step 1 (matrixorigin#18616)
    
    从shuffle算子中抽象出shufflePool对象,为接下来多并发的shuffle算子共用同一个pool做准备
    
    Approved by: @ouyuanning
    
    * retry lock without lock table (matrixorigin#18611)
    
    retry lock without lock table
    
    Approved by: @m-schen, @daviszhen, @reusee, @zhangxu19830126, @XuPeng-SH, @qingxinhome
    
    * support rename multi table (matrixorigin#18572)
    
    support rename multi table
    
    Approved by: @iamlinjunhong, @ouyuanning, @m-schen, @heni02, @qingxinhome, @daviszhen, @aunjgr
    
    * Fix test dedup snapshot3 (matrixorigin#18639)
    
    Fix test dedup snapshot3, update StartTS instead of SnapshotTS
    
    Approved by: @XuPeng-SH
    
    * [Bug]: performance regression of loading compressed file (matrixorigin#18644)
    
    fix a bug in external scan stats which cause performance regression
    
    Approved by: @ouyuanning
    
    * [refactor] : reuse memory for insert/delete partition table (matrixorigin#18617)
    
    之前对于分区表的insert和delete, 每次使用的batch都是新创建出来的(见原来的GroupByPartitionForDelete和GroupByPartitionForInsert).
    
    现在让它们复用算子自带的buffer
    
    Approved by: @m-schen
    
    * hashtable: add memory limit checks (matrixorigin#18646)
    
    to ensure the hashtable is not allocating excessive memory.
    
    Approved by: @XuPeng-SH, @aunjgr
    
    * refactor: preinsert (matrixorigin#18516)
    
    preinsert, 对于复合主键,cluster by,提前申请内存并复用。
    
    Approved by: @badboynt1, @ouyuanning, @m-schen, @aunjgr
    
    * dispatch operator must be in a pipeline with single parallel (matrixorigin#18659)
    
    在pipeline重构过程中,为了减少pipeline的打断,尝试让dispatch算子也支持多并发。
    但是这个尝试过程中遇到了很多问题。现在先将这一逻辑回退,让dispatch算子保持单并发。
    
    Approved by: @ouyuanning
    
    * remove persisted tombstones merge during flush (matrixorigin#18660)
    
    do not merge persisted tombstones during flush
    
    Approved by: @XuPeng-SH
    
    * fix build plan pb (matrixorigin#18653)
    
    fix build plan pb
    
    Approved by: @ouyuanning, @aunjgr
    
    * fix ut (matrixorigin#18657)
    
    fix data race
    
    Approved by: @XuPeng-SH
    
    * fix types.Rowid|types.Blockid compare related (matrixorigin#18635)
    
    1. Roiwd and Blockid are using bytes.Compare, while byte order does not indicate the actual order of Rowid and Blockid
    2. without this fix, the order of Rowid in the tombstone file is disordered and it will cause data loss during scan
    3. Without this fix, the rowid column zone map may be wrong
    4. This PR also improve the performance of Blockid.Compare|Objectid.Compare|Rowid.Compare
    
    Approved by: @LeftHandCold, @badboynt1, @ouyuanning, @aunjgr, @m-schen, @triump2020
    
    * bug fix: Top Operator should not change input batch (matrixorigin#18658)
    
    bug fix: Top Operator should not change input batch
    
    Approved by: @heni02, @m-schen
    
    * Refactor join node compilation analyze (matrixorigin#18665)
    
    Fix and refactor the compilation and analysis of the join nodes:
    
    Approved by: @badboynt1, @ouyuanning, @m-schen
    
    * New operator analyzer design (matrixorigin#18332)
    
    * [bug] logtail: clear the tables in global stats when logtail re-connect (matrixorigin#18675)
    
    clear the tables in global stats when logtail re-connect
    
    Approved by: @LeftHandCold, @XuPeng-SH
    
    * fix select version (matrixorigin#18670)
    
    fix select version
    
    Approved by: @heni02, @qingxinhome
    
    * fix a bug that cause load performance regression when there is sink_scan node in plan (matrixorigin#18682)
    
    fix a bug that cause load performance regression when there is sink_scan node in plan
    
    Approved by: @ouyuanning
    
    * fix replay incomplete data to catalog cache (matrixorigin#18662)
    
    The system must complete the catalog cache replay before it can process the push logtail for the three tables.
    
    Approved by: @XuPeng-SH
    
    * fix non reserved keyword period (matrixorigin#18640)
    
    fix non reserved keyword period
    
    Approved by: @m-schen
    
    * using pointers as function arguments to avoid relying on golang compiler optimizations (matrixorigin#18693)
    
    using pointers as function arguments to avoid relying on golang compiler optimizations.
    
    The compiler sometimes chooses to allocate memory on the heap for passed parameters, leading to performance degradation
    
    <img width="1789" alt="image" src="https://github.com/user-attachments/assets/6a9b6a89-205b-4501-800d-02cb1a6ae167">
    
    
    The compiler sometimes chooses to allocate memory on the heap for passed parameters, leading to performance degradation
    
    <img width="1792" alt="image" src="https://github.com/user-attachments/assets/edfc8d8e-8d12-430a-ac4d-ec421396805d">
    
    Approved by: @LeftHandCold, @triump2020
    
    * add restart txn interface for reuse txn operator (matrixorigin#18700)
    
    Add restart txn interface for reuse txn operator to avoid mem allocate.
    
    Approved by: @daviszhen, @reusee, @qingxinhome
    
    * avoid metadata cache access heap allocation (matrixorigin#18699)
    
    Prev:
    <img width="1792" alt="image" src="https://github.com/user-attachments/assets/b5927e30-6a6d-4a30-8d68-8d67b5085f38">
    
    Now:
    <img width="1792" alt="image" src="https://github.com/user-attachments/assets/72dc4b1c-b9be-4f9a-9709-9f28fdfc72cc">
    
    Approved by: @LeftHandCold, @triump2020
    
    * malloc: optimize profiler (matrixorigin#18703)
    
    malloc: make decorator types generic
    
    malloc: add cacheline padding to ShardedAllocator
    
    Approved by: @qingxinhome
    
    * refactor merge scheduler (matrixorigin#18531)
    
    refactor merge scheduler
    
    Approved by: @aptend, @daviszhen, @XuPeng-SH
    
    * bug fix: unique key/secondary key get incorrect value (matrixorigin#18711)
    
    bug fix: unique key/secondary key get incorrect value
    
    Approved by: @heni02, @badboynt1, @aunjgr
    
    * set userID & roleID for executor (matrixorigin#18708)
    
    Set UserID & RoleID for normal account.
    
    Approved by: @YANGGMM, @daviszhen, @heni02
    
    * Datalink support stage URL and add save_file() function (matrixorigin#18668)
    
    datalink add stage URL support and add save_file() function
    
    Approved by: @heni02, @daviszhen, @m-schen, @aunjgr, @aressu1985, @XuPeng-SH
    
    * optimize create vector index (matrixorigin#18713)
    
    don't return error when message timeout, only print log
    for product join, get one batch from left child before receive from build side
    
    Approved by: @m-schen, @XuPeng-SH
    
    * add new ExpressionExecutor for plan.Expr_List (matrixorigin#18698)
    
    add new ExpressionExecutor for plan.Expr_List
    
    Approved by: @m-schen
    
    ---------
    
    Co-authored-by: Wei Ziran <[email protected]>
    Co-authored-by: YANGGMM <[email protected]>
    Co-authored-by: zengyan1 <[email protected]>
    Co-authored-by: reusee <[email protected]>
    Co-authored-by: gouhongshen <[email protected]>
    Co-authored-by: fengttt <[email protected]>
    Co-authored-by: nitao <[email protected]>
    Co-authored-by: XuPeng-SH <[email protected]>
    Co-authored-by: jiangxinmeng1 <[email protected]>
    Co-authored-by: CJKkkk_ <[email protected]>
    Co-authored-by: aptend <[email protected]>
    Co-authored-by: ou yuanning <[email protected]>
    Co-authored-by: fagongzi <[email protected]>
    Co-authored-by: Wenbin <[email protected]>
    Co-authored-by: iamlinjunhong <[email protected]>
    Co-authored-by: huby2358 <[email protected]>
    Co-authored-by: qingxinhome <[email protected]>
    Co-authored-by: Jackson <[email protected]>
    Co-authored-by: GreatRiver <[email protected]>
    Co-authored-by: Jensen <[email protected]>
    Co-authored-by: LiuBo <[email protected]>
    Co-authored-by: Eric Lam <[email protected]>
    fengttt pushed a commit to fengttt/matrixone that referenced this pull request May 7, 2026
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

    Labels

    Projects

    None yet

    Development

    Successfully merging this pull request may close these issues.