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

[Pick](nereids) runtime filter with probe expr should be pushed though set operator #33010 for Branch-2.1 #33782

Closed
wants to merge 102 commits into from

Commits on Apr 13, 2024

  1. Configuration menu
    Copy the full SHA
    dcd6909 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    1d7f367 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    6545c83 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    0423419 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    844e34e View commit details
    Browse the repository at this point in the history
  6. [opt](log) refactor the log dir config (apache#32933)

    Refactor the config for log dir of FE and BE
    
    TLDR:
    - Use env variable `LOG_DIR` to set root log dir
    - Remove `sys_log_dir` for FE and BE
    
    Details:
    
    1. FE
    
        1. The root log dir is set by env variable `LOG_DIR` in `fe.conf`
        2. The default value of `audit_log_dir` is same as `${LOG_DIR}/`
        3. The default value of `spark_launcher_log_dir` is `${LOG_DIR}/spark_launcher_log`
        4. The default value of `nereids_trace_log_dir` is `${LOG_DIR}/nereids_trace_log`
        5. The origin `sys_log_dir` is deprecated, and default value is `""`.
            But for compatibility, if user already set `sys_log_dir` before, Doris will still use it as root log dir.
    
    2. BE
    
         1. The root log dir is set by env variable `LOG_DIR` in `be.conf`
         2. Remove `pipeline_tracing_log_dir`, use `${LOG_DIR}` directly.
         3. The origin `sys_log_dir` is deprecated, and default value is `""`.
             But for compatibility, if user already set `sys_log_dir` before, Doris will still use it as root log dir.
    morningman authored and Doris-Extras committed Apr 13, 2024
    Configuration menu
    Copy the full SHA
    12358e8 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    441704a View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    882e23f View commit details
    Browse the repository at this point in the history
  9. [Improvementation](stream-load) improve streamLoadPut log warning det…

    …ail (apache#33535)
    
    improve streamLoadPut log warning detail
    BiteTheDDDDt authored and Doris-Extras committed Apr 13, 2024
    Configuration menu
    Copy the full SHA
    dab4c6e View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    91b7506 View commit details
    Browse the repository at this point in the history
  11. [bug](not in) if not in (null) could eos early (apache#33482)

    * [bug](not in) if not in (null) could eos early
    zhangstar333 authored and Doris-Extras committed Apr 13, 2024
    Configuration menu
    Copy the full SHA
    cf03e69 View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    f0c60d7 View commit details
    Browse the repository at this point in the history
  13. Configuration menu
    Copy the full SHA
    4bacd20 View commit details
    Browse the repository at this point in the history
  14. Configuration menu
    Copy the full SHA
    9681f34 View commit details
    Browse the repository at this point in the history
  15. Configuration menu
    Copy the full SHA
    4b40323 View commit details
    Browse the repository at this point in the history
  16. Configuration menu
    Copy the full SHA
    e837013 View commit details
    Browse the repository at this point in the history
  17. [Feature](Variant) support aggregation model for Variant type (apache…

    …#33493)
    
     refactor use `insert_from` to replace `replace_column_data` for variable lengths columns
    eldenmoon authored and Doris-Extras committed Apr 13, 2024
    Configuration menu
    Copy the full SHA
    34fafca View commit details
    Browse the repository at this point in the history
  18. Configuration menu
    Copy the full SHA
    3a74fdb View commit details
    Browse the repository at this point in the history
  19. Configuration menu
    Copy the full SHA
    296421d View commit details
    Browse the repository at this point in the history
  20. Configuration menu
    Copy the full SHA
    0dd9d8f View commit details
    Browse the repository at this point in the history
  21. Configuration menu
    Copy the full SHA
    c5b7a8c View commit details
    Browse the repository at this point in the history
  22. Configuration menu
    Copy the full SHA
    29f5640 View commit details
    Browse the repository at this point in the history
  23. Configuration menu
    Copy the full SHA
    7b8a1e7 View commit details
    Browse the repository at this point in the history
  24. Configuration menu
    Copy the full SHA
    d383884 View commit details
    Browse the repository at this point in the history
  25. [feature](profile) add non-zero counter in profile(apache#33342)

    add non-zero counter in profile
    Mryange authored and Doris-Extras committed Apr 13, 2024
    Configuration menu
    Copy the full SHA
    474aa81 View commit details
    Browse the repository at this point in the history
  26. [Fix] fix compile problem (apache#33578)

    Co-authored-by: feiniaofeiafei <[email protected]>
    2 people authored and Doris-Extras committed Apr 13, 2024
    Configuration menu
    Copy the full SHA
    585aeb5 View commit details
    Browse the repository at this point in the history
  27. Configuration menu
    Copy the full SHA
    90c69b0 View commit details
    Browse the repository at this point in the history
  28. Configuration menu
    Copy the full SHA
    76502fd View commit details
    Browse the repository at this point in the history
  29. [fix](schema change) CastStringConverter is compiled failed in g++ (a…

    …pache#33546)
    
    follow apache#32873, CastStringConverter is compiled failed in g++ for uninitialized value, which is ok in clang:
    AshinGau authored and Doris-Extras committed Apr 13, 2024
    Configuration menu
    Copy the full SHA
    7ea5e1d View commit details
    Browse the repository at this point in the history
  30. Configuration menu
    Copy the full SHA
    cd9eb6d View commit details
    Browse the repository at this point in the history
  31. Configuration menu
    Copy the full SHA
    add2805 View commit details
    Browse the repository at this point in the history
  32. Configuration menu
    Copy the full SHA
    77b1cfe View commit details
    Browse the repository at this point in the history
  33. Configuration menu
    Copy the full SHA
    3ea6587 View commit details
    Browse the repository at this point in the history
  34. Configuration menu
    Copy the full SHA
    bdd5440 View commit details
    Browse the repository at this point in the history
  35. Configuration menu
    Copy the full SHA
    24c3294 View commit details
    Browse the repository at this point in the history
  36. Configuration menu
    Copy the full SHA
    6c2e684 View commit details
    Browse the repository at this point in the history
  37. Configuration menu
    Copy the full SHA
    af556cf View commit details
    Browse the repository at this point in the history
  38. [feature](backup) ignore table that not support type when backup, and… (

    apache#33158)
    
    * [feature](backup) ignore table that not support type when backup, and not report exception
    
    Signed-off-by: nextdreamblue <[email protected]>
    
    * fix
    
    Signed-off-by: nextdreamblue <[email protected]>
    
    ---------
    
    Signed-off-by: nextdreamblue <[email protected]>
    nextdreamblue authored and Doris-Extras committed Apr 13, 2024
    Configuration menu
    Copy the full SHA
    3e0082c View commit details
    Browse the repository at this point in the history
  39. Configuration menu
    Copy the full SHA
    2dfe8cf View commit details
    Browse the repository at this point in the history
  40. Configuration menu
    Copy the full SHA
    ecc3c60 View commit details
    Browse the repository at this point in the history
  41. Configuration menu
    Copy the full SHA
    3aa3604 View commit details
    Browse the repository at this point in the history
  42. [enhancement](mysql compatible) add user and procs_priv tables to mys…

    …ql db in all catalogs (apache#33058)
    
    Issue Number: close #xxx
    
    This PR aims to enhance the compatibility of BI tools (such as Dbeaver, DataGrip) when using the mysql connector to connect to Doris, because some BI tools query some tables in the mysql database. In our tests, the user and procs_priv tables were mainly queried. This PR adds these two tables and adds actual data to the user table. However, please note that most of the fields in the user table are in Doris' own format rather than mysql format, so it can only ensure that the BI tool is querying No error is reported when accessing these tables, which does not guarantee that the data is completely displayed, and the tables under Doris's mysql database do not support data modification.
    Thanks to @liujiwen-up for assisting in testing
    zy-kkk authored and Doris-Extras committed Apr 13, 2024
    Configuration menu
    Copy the full SHA
    9c48618 View commit details
    Browse the repository at this point in the history
  43. [enhancement](plsql) Support select * from routines (apache#32866)

    Support show of plsql procedure using select * from routines.
    Vallishp authored and Doris-Extras committed Apr 13, 2024
    Configuration menu
    Copy the full SHA
    12ee922 View commit details
    Browse the repository at this point in the history
  44. Configuration menu
    Copy the full SHA
    2ae3313 View commit details
    Browse the repository at this point in the history
  45. fix compile

    Doris-Extras committed Apr 13, 2024
    Configuration menu
    Copy the full SHA
    3cebd37 View commit details
    Browse the repository at this point in the history
  46. Configuration menu
    Copy the full SHA
    96ed07c View commit details
    Browse the repository at this point in the history

Commits on Apr 14, 2024

  1. [fix](Nereids) create view should forward to master (apache#33626)

     fix: create view should forward to master
    morrySnow authored and Doris-Extras committed Apr 14, 2024
    Configuration menu
    Copy the full SHA
    0e5226e View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    565de9d View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    80f25cb View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    9154b54 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    6ce61eb View commit details
    Browse the repository at this point in the history
  6. remove is cloud mode

    Doris-Extras committed Apr 14, 2024
    Configuration menu
    Copy the full SHA
    00e082f View commit details
    Browse the repository at this point in the history

Commits on Apr 15, 2024

  1. Configuration menu
    Copy the full SHA
    1832dc2 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    4b3339a View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    894f9d5 View commit details
    Browse the repository at this point in the history
  4. [branch-2.1](cherry-pick) Pick some partial-update PR from master (ap…

    …ache#33639)
    
    * [Fix](partial-update) Fix partial update fail when the datetime default value is 'current_time' (apache#32926)
    
    * Problem: When importing data that includes datetime with a default value of current time for partial column updates, the import fails.
    Reason: Partial column updates do not handle the logic for datetime default values.
    Solution: During partial column updates, when the default value is set to current time, read the current time from the runtime state and write it into the data.
    
    * [Enhancement](partial update)Add timezone case for partial update timestamp apache#33177
    
    * [fix](partial update) Support partial update when the date default value is 'current_date'. This PR is a extension of PR apache#32926. (apache#33394)
    Yukang-Lian authored Apr 15, 2024
    Configuration menu
    Copy the full SHA
    54c3851 View commit details
    Browse the repository at this point in the history

Commits on Apr 16, 2024

  1. Configuration menu
    Copy the full SHA
    0f1adc9 View commit details
    Browse the repository at this point in the history
  2. [Bug](runtime-filter) make need_local_merge unrelated with broadcast …

    …and support merge on bitmap_filter (apache#33664)
    BiteTheDDDDt authored Apr 16, 2024
    Configuration menu
    Copy the full SHA
    b5c39c4 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    c7d93e6 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    aaba87d View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    669bdec View commit details
    Browse the repository at this point in the history
  6. [feature](Nereids): date literal suppose Zone (apache#33534)

    support
    ```
    '2022-05-01 01:02:55+02:30
    '2022-05-01 01:02:55Asia/Shanghai
    ```
    jackwener authored and Doris-Extras committed Apr 16, 2024
    Configuration menu
    Copy the full SHA
    8cfbc0e View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    a5c7e76 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    bd9d1e7 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    bc69024 View commit details
    Browse the repository at this point in the history
  10. [refine](Operator) When _stop_emplace_flag is not set to true, perfor…

    …m batch processing on the block. (apache#33173)
    Mryange authored and Doris-Extras committed Apr 16, 2024
    Configuration menu
    Copy the full SHA
    c7e9927 View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    973d94e View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    5b0d357 View commit details
    Browse the repository at this point in the history
  13. Configuration menu
    Copy the full SHA
    3a75f02 View commit details
    Browse the repository at this point in the history
  14. [testcases](auto-partition) fix data sync (apache#33635)

    fix data sync
    zclllyybb authored and Doris-Extras committed Apr 16, 2024
    Configuration menu
    Copy the full SHA
    7522799 View commit details
    Browse the repository at this point in the history
  15. Configuration menu
    Copy the full SHA
    486b450 View commit details
    Browse the repository at this point in the history
  16. [Chore](log) adjust output order on PrintInstanceStandardInfo and red…

    …uce warning log when rpc finished (apache#33652)
    
    adjust output order on PrintInstanceStandardInfo and reduce warning log when rpc finished
    BiteTheDDDDt authored and Doris-Extras committed Apr 16, 2024
    Configuration menu
    Copy the full SHA
    75f2ef7 View commit details
    Browse the repository at this point in the history
  17. Configuration menu
    Copy the full SHA
    5f6eaac View commit details
    Browse the repository at this point in the history
  18. Configuration menu
    Copy the full SHA
    0a31a3c View commit details
    Browse the repository at this point in the history
  19. [refactor](refresh-catalog) refactor the refresh catalog code (apache…

    …#33653)
    
    To unify the code.
    In previous, we do catalog refresh in `CatalogMgr`, but do
    database and table refresh in `RefreshMgr`, which is very confusing.
    
    This PR move all `refresh` related code from CatalogMgr to RefreshMgr.
    
    No logic is changed in this PR.
    morningman authored and Doris-Extras committed Apr 16, 2024
    Configuration menu
    Copy the full SHA
    db4cb33 View commit details
    Browse the repository at this point in the history
  20. [fix](nereids) Use correct PREAGGREGATION in agg(filter(scan)) (apach…

    …e#33454)
    
    1. set `PreAggStatus` to `ON` when agg key column by max or min;
    2. apache#28747 may change `PreAggStatus` of scan, inherit it from the previous one.
    liutang123 authored and Doris-Extras committed Apr 16, 2024
    Configuration menu
    Copy the full SHA
    684c987 View commit details
    Browse the repository at this point in the history
  21. Configuration menu
    Copy the full SHA
    3a486df View commit details
    Browse the repository at this point in the history
  22. Configuration menu
    Copy the full SHA
    491d6f3 View commit details
    Browse the repository at this point in the history
  23. Configuration menu
    Copy the full SHA
    7436904 View commit details
    Browse the repository at this point in the history
  24. Configuration menu
    Copy the full SHA
    596d8df View commit details
    Browse the repository at this point in the history
  25. Configuration menu
    Copy the full SHA
    ceedc26 View commit details
    Browse the repository at this point in the history
  26. Configuration menu
    Copy the full SHA
    8ff4d55 View commit details
    Browse the repository at this point in the history
  27. Configuration menu
    Copy the full SHA
    d3752d2 View commit details
    Browse the repository at this point in the history
  28. Configuration menu
    Copy the full SHA
    a374dfa View commit details
    Browse the repository at this point in the history
  29. [feature](proc)Add table's indexes info in show proc interface (apach…

    …e#33438)
    
    1. Add show proc `/dbs/db_id/table_id/indexes` impl
    2. Remove index_id in `show index from table`
    3. Add test cases
    
    ---------
    
    Co-authored-by: Luennng <[email protected]>
    2 people authored and Doris-Extras committed Apr 16, 2024
    Configuration menu
    Copy the full SHA
    6f38426 View commit details
    Browse the repository at this point in the history
  30. [fix](analyze) avoid java.util.ConcurrentModificationException (apach…

    …e#33674)
    
    ```
    java.util.ConcurrentModificationException: null
            at java.util.TreeMap$ValueSpliterator.forEachRemaining(TreeMap.java:3226) ~[?:?]
            at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:509) ~[?:?]
            at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:499) ~[?:?]
            at java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:921) ~[?:?]
            at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234) ~[?:?]
            at java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:682) ~[?:?]
            at org.apache.doris.statistics.AnalysisManager.findShowAnalyzeResult(AnalysisManager.java:552) ~[doris-fe.jar:1.2-SNAPSHOT]
            at org.apache.doris.statistics.AnalysisManager.showAnalysisJob(AnalysisManager.java:533) ~[doris-fe.jar:1.2-SNAPSHOT]
            at org.apache.doris.qe.ShowExecutor.handleShowAnalyze(ShowExecutor.java:2772) ~[doris-fe.jar:1.2-SNAPSHOT]
            at org.apache.doris.qe.ShowExecutor.execute(ShowExecutor.java:447) ~[doris-fe.jar:1.2-SNAPSHOT]
            at org.apache.doris.qe.StmtExecutor.handleShow(StmtExecutor.java:2738) ~[doris-fe.jar:1.2-SNAPSHOT]
            at org.apache.doris.qe.StmtExecutor.executeByLegacy(StmtExecutor.java:1010) ~[doris-fe.jar:1.2-SNAPSHOT]
            at org.apache.doris.qe.StmtExecutor.execute(StmtExecutor.java:624) ~[doris-fe.jar:1.2-SNAPSHOT]
            at org.apache.doris.qe.StmtExecutor.execute(StmtExecutor.java:526) ~[doris-fe.jar:1.2-SNAPSHOT]
            at org.apache.doris.qe.ConnectProcessor.executeQuery(ConnectProcessor.java:333) ~[doris-fe.jar:1.2-SNAPSHOT]
            at org.apache.doris.qe.ConnectProcessor.handleQuery(ConnectProcessor.java:228) ~[doris-fe.jar:1.2-SNAPSHOT]
            at org.apache.doris.qe.MysqlConnectProcessor.handleQuery(MysqlConnectProcessor.java:176) ~[doris-fe.jar:1.2-SNAPSHOT]
            at org.apache.doris.qe.MysqlConnectProcessor.dispatch(MysqlConnectProcessor.java:205) ~[doris-fe.jar:1.2-SNAPSHOT]
            at org.apache.doris.qe.MysqlConnectProcessor.processOnce(MysqlConnectProcessor.java:258) ~[doris-fe.jar:1.2-SNAPSHOT]
            at org.apache.doris.mysql.ReadListener.lambda$handleEvent$0(ReadListener.java:52) ~[doris-fe.jar:1.2-SNAPSHOT]
            at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136) ~[?:?]
            at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) ~[?:?]
            at java.lang.Thread.run(Thread.java:840) ~[?:?]
    ```
    
    Due to the `Collections.synchronizedNavigableMap`'s java doc:
    
    ```
    In order to guarantee serial access, it is critical that all access to the backing navigable map is accomplished through the returned navigable map (or its views).
    It is imperative that the user manually synchronize on the returned navigable map when traversing any of its collection views, or the collections views of any of its subMap, headMap or tailMap views, via Iterator, Spliterator or Stream
    ```
    morningman authored and Doris-Extras committed Apr 16, 2024
    Configuration menu
    Copy the full SHA
    de209c1 View commit details
    Browse the repository at this point in the history
  31. Configuration menu
    Copy the full SHA
    06494d2 View commit details
    Browse the repository at this point in the history
  32. Configuration menu
    Copy the full SHA
    24edd6e View commit details
    Browse the repository at this point in the history
  33. [FIX](cast)fix full/right out join for cast array (apache#33475)

    in some case, we has code
    ```
            if (_join_op == TJoinOp::RIGHT_OUTER_JOIN || _join_op == TJoinOp::FULL_OUTER_JOIN) {
                _probe_column_convert_to_null = _convert_block_to_null(*input_block);
            }
    ```
    then do next function like cast , but in function cast we assume block column is same with from_type.which will make status error
    amorynan authored and Doris-Extras committed Apr 16, 2024
    Configuration menu
    Copy the full SHA
    0aad1f2 View commit details
    Browse the repository at this point in the history
  34. Configuration menu
    Copy the full SHA
    c753b56 View commit details
    Browse the repository at this point in the history
  35. Configuration menu
    Copy the full SHA
    dd98f98 View commit details
    Browse the repository at this point in the history
  36. Configuration menu
    Copy the full SHA
    d00ca28 View commit details
    Browse the repository at this point in the history
  37. [feature](function) support hll functions hll_from_base64, hll_to_bas…

    …e64 (apache#32089)
    
    Issue Number: apache#31320 
    
    Support two hll functions:
    
    - hll_from_base64
    Convert a base64 string(result of function hll_to_base64) into a hll.
    - hll_to_base64
    Convert an input hll to a base64 string.
    superdiaodiao authored and Doris-Extras committed Apr 16, 2024
    Configuration menu
    Copy the full SHA
    8640246 View commit details
    Browse the repository at this point in the history
  38. Configuration menu
    Copy the full SHA
    775ffdf View commit details
    Browse the repository at this point in the history
  39. Configuration menu
    Copy the full SHA
    71a1866 View commit details
    Browse the repository at this point in the history
  40. Configuration menu
    Copy the full SHA
    5e30989 View commit details
    Browse the repository at this point in the history
  41. Configuration menu
    Copy the full SHA
    2181a29 View commit details
    Browse the repository at this point in the history
  42. Configuration menu
    Copy the full SHA
    09a0c07 View commit details
    Browse the repository at this point in the history
  43. fix compile

    Doris-Extras committed Apr 16, 2024
    Configuration menu
    Copy the full SHA
    ec2bf8b View commit details
    Browse the repository at this point in the history

Commits on Apr 17, 2024

  1. Configuration menu
    Copy the full SHA
    7a04785 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    e61848d View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    2fcda99 View commit details
    Browse the repository at this point in the history