Skip to content

Recover - #33021

Merged
Jibing-Li merged 46 commits into
apache:high-priority-columnfrom
Jibing-Li:recover
Mar 29, 2024
Merged

Recover#33021
Jibing-Li merged 46 commits into
apache:high-priority-columnfrom
Jibing-Li:recover

Conversation

@Jibing-Li

Copy link
Copy Markdown
Contributor

Proposed changes

Issue Number: close #xxx

Further comments

If this is a relatively large or complex change, kick off the discussion at dev@doris.apache.org by explaining why you chose the solution you did and what alternatives you considered, etc...

yujun777and others added 30 commits March 27, 2024 14:54
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)
…or LDAP are enabled (apache#32538)
Disable some permission operations when Ranger or LDAP are enabled.
Co-authored-by: stephen <hello-stephen@qq.com>
…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
…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
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.
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
../../cloud/src/recycler/meta_checker.cpp
can cause uninitialised memory read.
…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
…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
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++.
1. Use equals instead of == for type comparing
2. null bitmap size is reisze by size of ref column.
zddrand others added 16 commits March 28, 2024 14:52
Support show of plsql procedure using select * from routines.
…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.
- `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 ```
@doris-robot

Copy link
Copy Markdown

Thank you for your contribution to Apache Doris.
Don't know what should be done next? See How to process your PR

Since 2024-03-18, the Document has been moved to doris-website.
See Doris Document.

@Jibing-Li
Jibing-Li marked this pull request as ready for review March 29, 2024 07:15
@Jibing-Li
Jibing-Li merged commit 19189e0 into apache:high-priority-columnMar 29, 2024
@Jibing-Li
Jibing-Li deleted the recover branch March 29, 2024 07:21
Sign up for freeto 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.

20 participants

@Jibing-Li@doris-robot@yujun777@gavinchou@xy720@yongjinhou@hello-stephen@morrySnow@seawinde@eldenmoon@Yulei-Yang@starocean999@wangbo@morningman@mrhhsg@RoanHeNaN@xinyiZzz@Vallishp@HappenLee@xiedeyantu