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

Recover #33021

Merged
merged 46 commits into from
Mar 29, 2024
Merged

Recover #33021

merged 46 commits into from
Mar 29, 2024

Commits on Mar 27, 2024

  1. Configuration menu
    Copy the full SHA
    24145a1 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    0e9515f View commit details
    Browse the repository at this point in the history
  3. [chore](show) support statement to show views from table (apache#32358)

    MySQL [test]> show views;
    +----------------+
    | Tables_in_test |
    +----------------+
    | t1_view        |
    | t2_view        |
    +----------------+
    2 rows in set (0.00 sec)
    
    MySQL [test]> show views like '%t1%';
    +----------------+
    | Tables_in_test |
    +----------------+
    | t1_view        |
    +----------------+
    1 row in set (0.01 sec)
    
    MySQL [test]> show views where create_time > '2024-03-18';
    +----------------+
    | Tables_in_test |
    +----------------+
    | t2_view        |
    +----------------+
    1 row in set (0.02 sec)
    xy720 authored Mar 27, 2024
    Configuration menu
    Copy the full SHA
    646c2aa View commit details
    Browse the repository at this point in the history
  4. [Enhancement](ranger) Disable some permission operations when Ranger …

    …or LDAP are enabled (apache#32538)
    
    Disable some permission operations when Ranger or LDAP are enabled.
    yongjinhou authored Mar 27, 2024
    Configuration menu
    Copy the full SHA
    2882115 View commit details
    Browse the repository at this point in the history
  5. [chore](ci) exclude unstable trino_connector case (apache#32892)

    Co-authored-by: stephen <[email protected]>
    hello-stephen and stephen authored Mar 27, 2024
    Configuration menu
    Copy the full SHA
    df8e703 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    22b8038 View commit details
    Browse the repository at this point in the history
  7. [improvement](mtmv) Support more join types for query rewriting by ma…

    …terialized view (apache#32685)
    
    This pattern of rewriting is supported for multi-table joins and supported join types is as following:
    
    INNER JOIN
    LEFT OUTER JOIN
    RIGHT OUTER JOIN
    FULL OUTER JOIN
    LEFT SEMI JOIN
    RIGHT SEMI JOIN
    LEFT ANTI JOIN
    RIGHT ANTI JOIN
    seawinde authored Mar 27, 2024
    Configuration menu
    Copy the full SHA
    3a31fe3 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    b2eb64a View commit details
    Browse the repository at this point in the history
  9. [fix](multicatalog) fix no data error when read hive table on cosn (a…

    …pache#32815)
    
    Currently, when reading a hive on cosn table, doris return empty result, but the table has data.
    iceberg on cosn is ok.
    The reason is misuse of cosn's file sytem. according to cosn's doc, its fs.cosn.impl should be org.apache.hadoop.fs.CosFileSystem
    Yulei-Yang authored Mar 27, 2024
    Configuration menu
    Copy the full SHA
    33849e0 View commit details
    Browse the repository at this point in the history
  10. [fix](nereids)EliminateGroupByConstant should replace agg's output af…

    …ter removing constant group by keys (apache#32878)
    starocean999 authored Mar 27, 2024
    Configuration menu
    Copy the full SHA
    4303934 View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    02d15d8 View commit details
    Browse the repository at this point in the history
  12. [fix](iceberg) fix iceberg catalog bug and p2 test cases (apache#32898)

    1. Fix iceberg catalog bug
    
        This PR apache#30198 change the logic of `IcebergHMSExternalCatalog.java`,
        to get locationUrl by calling hive metastore's `getCatalog()` method.
        But this method only exists in hive 3+. So it will fail if we using hive 2.x.
    
        I temporary remove this logic, because this logic is only used from iceberg table writing.
        Which is still under development. We will rethink this logic later.
    
    2. Fix test cases
    
        Some of P2 test cases missed `order_qt`. And because the output format of the floating point
        type is changed, some result in `out` files need to be regenerated.
    morningman authored Mar 27, 2024
    Configuration menu
    Copy the full SHA
    b29d395 View commit details
    Browse the repository at this point in the history
  13. Configuration menu
    Copy the full SHA
    58e474f View commit details
    Browse the repository at this point in the history
  14. Configuration menu
    Copy the full SHA
    94d745b View commit details
    Browse the repository at this point in the history
  15. Configuration menu
    Copy the full SHA
    8bde14f View commit details
    Browse the repository at this point in the history

Commits on Mar 28, 2024

  1. Configuration menu
    Copy the full SHA
    742a3f6 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    496befd View commit details
    Browse the repository at this point in the history
  3. [fix](arrow-flight) Fix reach limit of connections error (apache#32911)

    Fix Reach limit of connections error
    in fe.conf , arrow_flight_token_cache_size is mandatory less than qe_max_connection/2. arrow flight sql is a stateless protocol, connection is usually not actively disconnected, bearer token is evict from the cache will unregister ConnectContext.
    
    Fix ConnectContext.command not be reset to COM_SLEEP in time, this will result in frequent kill connection after query timeout.
    
    Fix bearer token evict log and exception.
    
    TODO: use arrow flight session: https://mail.google.com/mail/u/0/#inbox/FMfcgzGxRdxBLQLTcvvtRpqsvmhrHpdH
    xinyiZzz authored Mar 28, 2024
    Configuration menu
    Copy the full SHA
    57612e4 View commit details
    Browse the repository at this point in the history
  4. [bugfix](cloud) few variable not initialized (apache#32868)

    ../../cloud/src/recycler/meta_checker.cpp
    can cause uninitialised memory read.
    Vallishp authored Mar 28, 2024
    Configuration menu
    Copy the full SHA
    7f479ea View commit details
    Browse the repository at this point in the history
  5. [fix](arrow-flight) Fix arrow flight sql compatible with JDK 17 and u…

    …pgrade arrow 15.0.2 (apache#32796)
    
    --add-opens=java.base/java.nio=ALL-UNNAMED, see: https://arrow.apache.org/docs/java/install.html#java-compatibility
    groovy use flight sql connection to execute query SUM(MAX(c1) OVER (PARTITION BY)) report error: AGGREGATE clause must not contain analytic expressions, but no problem in Java execute it with jdbc::arrow-flight-sql.
    groovy not support print arrow array type, throw IndexOutOfBoundsException.
    "arrow_flight_sql" not support two phase read
    ./run-regression-test.sh --run --clean -g arrow_flight_sql
    xinyiZzz authored Mar 28, 2024
    Configuration menu
    Copy the full SHA
    b5dc1e4 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    ceef19a View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    5ebaa4f View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    fce88d7 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    0077b94 View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    4967ff6 View commit details
    Browse the repository at this point in the history
  11. [improvement](mtmv) Support to get tables in materialized view when c…

    …ollecting table in plan (apache#32797)
    
    Support to get tables in materialized view when collecting table in plan
    
    table scehma as fllowing:
    
    create materialized view mv1
    BUILD IMMEDIATE REFRESH COMPLETE ON MANUAL
    DISTRIBUTED BY RANDOM BUCKETS 1 
    PROPERTIES ('replication_num' = '1')
     as 
    select 
      t1.c1, 
      t3.c2 
    from 
      table1 t1 
      inner join table3 t3 on t1.c1 = t3.c2
    
    if get table from the plan as follwoing, we can get [table1, table3, table2], the mv1 is expanded to get base tables;
    
    SELECT 
      mv1.*, 
      uuid() 
    FROM 
      mv1 LEFT SEMI 
      JOIN table2 ON mv1.c1 = table2.c1 
    WHERE 
      mv1.c1 IN (
        SELECT 
          c1 
        FROM 
          table2
      ) 
      OR mv1.c1 < 10
    seawinde authored Mar 28, 2024
    Configuration menu
    Copy the full SHA
    92f32db View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    2a82bb7 View commit details
    Browse the repository at this point in the history
  13. [enhancement](cloud) add table version to cloud (apache#32738)

    Add table version to cloud.
    
    In Fe:
    Get: If Fe is cloud mode, get table version from meta service.
    Update: Op drop/replace temp partition, commit transaction.
    
    In meta service:
    Add: create Index. init value is 1.
    Remove: by recycler.
    Update: commit/drop partition rpc, commit txn rpc. Atomic++.
    xy720 authored Mar 28, 2024
    Configuration menu
    Copy the full SHA
    4665ee6 View commit details
    Browse the repository at this point in the history
  14. [fix](cloud) schema change from not null to null (apache#32913)

    1. Use equals instead of == for type comparing
    2. null bitmap size is reisze by size of ref column.
    dataroaring authored Mar 28, 2024
    Configuration menu
    Copy the full SHA
    49875c3 View commit details
    Browse the repository at this point in the history
  15. Configuration menu
    Copy the full SHA
    5970f98 View commit details
    Browse the repository at this point in the history
  16. Configuration menu
    Copy the full SHA
    c2094d4 View commit details
    Browse the repository at this point in the history
  17. Configuration menu
    Copy the full SHA
    ffbe981 View commit details
    Browse the repository at this point in the history
  18. Configuration menu
    Copy the full SHA
    709158f View commit details
    Browse the repository at this point in the history
  19. Configuration menu
    Copy the full SHA
    56fa2f7 View commit details
    Browse the repository at this point in the history
  20. Configuration menu
    Copy the full SHA
    affee13 View commit details
    Browse the repository at this point in the history
  21. Configuration menu
    Copy the full SHA
    cb24115 View commit details
    Browse the repository at this point in the history
  22. [enhancement](plsql) Support select * from routines (apache#32866)

    Support show of plsql procedure using select * from routines.
    Vallishp authored Mar 28, 2024
    Configuration menu
    Copy the full SHA
    90c52dc View commit details
    Browse the repository at this point in the history
  23. [fix](trino-connector) fix NoClassDefFoundError of hudi Utils cla…

    …ss (apache#32846)
    
    Due to the change of this PR apache#32455 , the `trino-connector-scanner` package cannot access the `hudi_scanner` package, so the exception NoclassDeffounderror will appear.
    
    We need to write a separate Utils class.
    BePPPower authored Mar 28, 2024
    Configuration menu
    Copy the full SHA
    2245f1b View commit details
    Browse the repository at this point in the history
  24. Configuration menu
    Copy the full SHA
    d3a9bf3 View commit details
    Browse the repository at this point in the history
  25. Configuration menu
    Copy the full SHA
    775392e View commit details
    Browse the repository at this point in the history
  26. Configuration menu
    Copy the full SHA
    dd416a4 View commit details
    Browse the repository at this point in the history
  27. Configuration menu
    Copy the full SHA
    4c7885b View commit details
    Browse the repository at this point in the history
  28. Configuration menu
    Copy the full SHA
    cf1d4bb View commit details
    Browse the repository at this point in the history
  29. Configuration menu
    Copy the full SHA
    634b8aa View commit details
    Browse the repository at this point in the history
  30. Configuration menu
    Copy the full SHA
    bf381b6 View commit details
    Browse the repository at this point in the history
  31. [fix](auth)unified workload and resource permission logic (apache#32907)

    - `Grant resource` can no longer grant global `usage_priv`
    -  `grant resource %` instead of `grant resource *`
    
    before change:
    ```
    grant usage_priv on resource * to f;
    show grants for f\G
    *************************** 1. row ***************************
          UserIdentity: 'f'@'%'
               Comment: 
              Password: No
                 Roles: 
           GlobalPrivs: Usage_priv 
          CatalogPrivs: NULL
         DatabasePrivs: internal.information_schema: Select_priv ; internal.mysql: Select_priv 
            TablePrivs: NULL
              ColPrivs: NULL
         ResourcePrivs: NULL
     CloudClusterPrivs: NULL
    WorkloadGroupPrivs: normal: Usage_priv 
    ```
    after change
    ```
    grant usage_priv on resource '%' to f;
    show grants for f\G
    *************************** 1. row ***************************
          UserIdentity: 'f'@'%'
               Comment: 
              Password: No
                 Roles: 
           GlobalPrivs: NULL
          CatalogPrivs: NULL
         DatabasePrivs: internal.information_schema: Select_priv ; internal.mysql: Select_priv 
            TablePrivs: NULL
              ColPrivs: NULL
         ResourcePrivs: %: Usage_priv 
     CloudClusterPrivs: NULL
    WorkloadGroupPrivs: normal: Usage_priv 
    
    ```
    zddr authored Mar 28, 2024
    Configuration menu
    Copy the full SHA
    fd1cf23 View commit details
    Browse the repository at this point in the history