Skip to content

Conversation

@Vallishp
Copy link
Contributor

@Vallishp Vallishp commented Mar 26, 2024

Proposed changes

Issue Number: close #31297
Support show of plsql procedure using select * from routines.
output

mysql> use information_schema
Database changed
mysql> select * from routines\G
*************************** 1. row ***************************
SPECIFIC_NAME: PROCEDURE_SELECT
ROUTINE_CATALOG: 0
ROUTINE_SCHEMA: information_schema
ROUTINE_NAME: PROCEDURE_SELECT
ROUTINE_TYPE: PROCEDURE
DTD_IDENTIFIER:
ROUTINE_BODY: CREATE OR REPLACE PROCEDURE procedure_select( IN id_n INT)
BEGIN
select * from plsql_tbl where id = id_n;
END
ROUTINE_DEFINITION:
EXTERNAL_NAME: NULL
EXTERNAL_LANGUAGE:
PARAMETER_STYLE: SQL
IS_DETERMINISTIC:
SQL_DATA_ACCESS:
SQL_PATH: NULL
SECURITY_TYPE: DEFINER
CREATED: 2024-03-24 16:52:58
LAST_ALTERED: 2024-03-24 16:52:58
SQL_MODE:
ROUTINE_COMMENT:
DEFINER: root
CHARACTER_SET_CLIENT:
COLLATION_CONNECTION:
DATABASE_COLLATION:
*************************** 2. row ***************************
SPECIFIC_NAME: PROCEDURE_INSERT
ROUTINE_CATALOG: 0
ROUTINE_SCHEMA: mydb
ROUTINE_NAME: PROCEDURE_INSERT
ROUTINE_TYPE: PROCEDURE
DTD_IDENTIFIER:
ROUTINE_BODY: CREATE OR REPLACE PROCEDURE procedure_insert(IN id int, IN name STRING)
BEGIN
INSERT INTO plsql_tbl VALUES(id, name);
END
ROUTINE_DEFINITION:
EXTERNAL_NAME: NULL
EXTERNAL_LANGUAGE:
PARAMETER_STYLE: SQL
IS_DETERMINISTIC:
SQL_DATA_ACCESS:
SQL_PATH: NULL
SECURITY_TYPE: DEFINER
CREATED: 2024-03-24 18:08:38
LAST_ALTERED: 2024-03-24 18:08:38
SQL_MODE:
ROUTINE_COMMENT:
DEFINER: root
CHARACTER_SET_CLIENT:
COLLATION_CONNECTION:
DATABASE_COLLATION:
2 rows in set (0.08 sec)

mysql> show procedure status;
+------------------+-----------+-------+-------------+-----------+---------------------+---------------------+
| ProcedureName | CatalogId | DbId | PackageName | OwnerName | CreateTime | ModifyTime |
+------------------+-----------+-------+-------------+-----------+---------------------+---------------------+
| PROCEDURE_SELECT | 0 | 0 | | root | 2024-03-24 16:52:58 | 2024-03-24 16:52:58 |
| PROCEDURE_INSERT | 0 | 11001 | | root | 2024-03-24 18:08:38 | 2024-03-24 18:08:38 |
+------------------+-----------+-------+-------------+-----------+---------------------+---------------------+
2 rows in set (0.10 sec)

mysql>
mysql> SELECT
-> routine_schema as "Database"
-> FROM
-> information_schema.routines
-> WHERE
-> routine_schema NOT IN ('sys', 'information_schema', 'mysql', 'performance_schema')
-> ;
+----------+
| Database |
+----------+
| mydb |
+----------+
1 row in set (0.03 sec)

mysql>

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...

@doris-robot
Copy link

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.

Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

clang-tidy made some suggestions

@Vallishp Vallishp force-pushed the plsql_select_2303 branch from 5b4fea3 to 0d69f70 Compare March 26, 2024 15:21
Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

clang-tidy made some suggestions

@Vallishp Vallishp force-pushed the plsql_select_2303 branch from 0d69f70 to 414f6a6 Compare March 26, 2024 15:27
Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

clang-tidy made some suggestions

@Vallishp Vallishp force-pushed the plsql_select_2303 branch from 414f6a6 to 65fb3dc Compare March 26, 2024 15:44
Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

clang-tidy made some suggestions

@Vallishp Vallishp force-pushed the plsql_select_2303 branch from 65fb3dc to aff2c33 Compare March 26, 2024 15:59
@github-actions
Copy link
Contributor

clang-tidy review says "All clean, LGTM! 👍"

@Vallishp
Copy link
Contributor Author

run buildall

@github-actions
Copy link
Contributor

clang-tidy review says "All clean, LGTM! 👍"

@Vallishp Vallishp force-pushed the plsql_select_2303 branch from 5603ac5 to c18edea Compare March 26, 2024 18:20
@Vallishp
Copy link
Contributor Author

run buildall

@doris-robot
Copy link

TPC-H: Total hot run time: 38206 ms
machine: 'aliyun_ecs.c7a.8xlarge_32C64G'
scripts: https://github.com/apache/doris/tree/master/tools/tpch-tools
Tpch sf100 test result on commit c18edeaac82ce60d904627415ccf50db731ba5cc, data reload: false

------ Round 1 ----------------------------------
q1	17602	4220	4168	4168
q2	2109	158	152	152
q3	10583	1167	1204	1167
q4	10237	737	784	737
q5	7461	3014	3013	3013
q6	198	123	122	122
q7	1030	593	583	583
q8	9337	2020	2012	2012
q9	7227	6661	6591	6591
q10	8443	3515	3582	3515
q11	433	241	221	221
q12	415	201	194	194
q13	17794	2844	2851	2844
q14	244	206	207	206
q15	507	452	454	452
q16	502	375	377	375
q17	954	547	615	547
q18	7225	6504	6422	6422
q19	3575	1436	1483	1436
q20	534	249	256	249
q21	3641	2904	2924	2904
q22	342	296	304	296
Total cold run time: 110393 ms
Total hot run time: 38206 ms

----- Round 2, with runtime_filter_mode=off -----
q1	4149	4115	4105	4105
q2	325	230	234	230
q3	2980	2837	2878	2837
q4	1848	1569	1553	1553
q5	5335	5310	5363	5310
q6	196	118	119	118
q7	2250	1857	1895	1857
q8	3160	3281	3293	3281
q9	8787	8721	8749	8721
q10	3832	3778	3788	3778
q11	548	458	442	442
q12	737	616	542	542
q13	16925	2860	2835	2835
q14	285	250	255	250
q15	502	474	458	458
q16	478	434	418	418
q17	1753	1467	1451	1451
q18	7508	7307	7142	7142
q19	1608	1507	1558	1507
q20	1892	1763	1712	1712
q21	4891	4838	4837	4837
q22	568	440	434	434
Total cold run time: 70557 ms
Total hot run time: 53818 ms

@doris-robot
Copy link

TPC-DS: Total hot run time: 182208 ms
machine: 'aliyun_ecs.c7a.8xlarge_32C64G'
scripts: https://github.com/apache/doris/tree/master/tools/tpcds-tools
TPC-DS sf100 test result on commit c18edeaac82ce60d904627415ccf50db731ba5cc, data reload: false

query1	943	371	365	365
query2	6557	2041	1848	1848
query3	6702	226	228	226
query4	31592	21368	21418	21368
query5	4271	410	395	395
query6	272	180	175	175
query7	4650	310	296	296
query8	232	162	174	162
query9	9550	2290	2282	2282
query10	565	245	238	238
query11	14573	14275	14281	14275
query12	142	93	83	83
query13	1617	432	414	414
query14	9943	7969	8064	7969
query15	267	207	200	200
query16	8219	264	267	264
query17	2005	582	560	560
query18	2048	289	287	287
query19	365	163	166	163
query20	100	88	87	87
query21	204	129	138	129
query22	5016	4808	4804	4804
query23	33621	32865	32512	32512
query24	11013	2888	2888	2888
query25	613	390	394	390
query26	1186	161	160	160
query27	2852	350	355	350
query28	7715	1917	1911	1911
query29	898	691	624	624
query30	302	154	148	148
query31	990	737	724	724
query32	89	58	60	58
query33	771	259	258	258
query34	1015	499	509	499
query35	817	621	605	605
query36	1025	885	880	880
query37	123	66	65	65
query38	3606	3455	3440	3440
query39	1476	1446	1428	1428
query40	214	117	114	114
query41	51	50	48	48
query42	109	101	98	98
query43	488	461	452	452
query44	1189	756	755	755
query45	285	266	261	261
query46	1126	736	733	733
query47	1906	1822	1849	1822
query48	470	371	353	353
query49	1118	348	342	342
query50	768	391	389	389
query51	6740	6671	6569	6569
query52	108	96	88	88
query53	350	282	279	279
query54	302	242	247	242
query55	90	80	83	80
query56	248	227	234	227
query57	1191	1134	1119	1119
query58	246	214	210	210
query59	2750	2566	2504	2504
query60	275	246	264	246
query61	117	114	118	114
query62	660	451	461	451
query63	309	280	280	280
query64	5826	4095	3983	3983
query65	3089	3051	3058	3051
query66	868	373	359	359
query67	15311	14838	15079	14838
query68	6939	529	532	529
query69	634	378	374	374
query70	1221	1149	1148	1148
query71	489	270	256	256
query72	6510	2725	2565	2565
query73	735	324	334	324
query74	8181	6419	6361	6361
query75	3521	2317	2222	2222
query76	4765	859	1035	859
query77	618	264	288	264
query78	11051	10176	10088	10088
query79	8005	545	551	545
query80	1501	385	381	381
query81	523	230	216	216
query82	873	86	96	86
query83	208	157	150	150
query84	291	79	77	77
query85	1466	342	319	319
query86	478	294	314	294
query87	3770	3581	3567	3567
query88	4970	2397	2388	2388
query89	513	375	382	375
query90	1999	182	184	182
query91	181	139	142	139
query92	62	51	50	50
query93	6151	510	501	501
query94	1095	182	181	181
query95	430	335	336	335
query96	622	270	276	270
query97	2641	2508	2504	2504
query98	229	217	211	211
query99	1225	925	910	910
Total cold run time: 306046 ms
Total hot run time: 182208 ms

@doris-robot
Copy link

Load test result on machine: 'aliyun_ecs.c7a.8xlarge_32C64G'

Load test result on commit c18edeaac82ce60d904627415ccf50db731ba5cc with default session variables
Stream load json:         18 seconds loaded 2358488459 Bytes, about 124 MB/s
Stream load orc:          59 seconds loaded 1101869774 Bytes, about 17 MB/s
Stream load parquet:      32 seconds loaded 861443392 Bytes, about 25 MB/s
Insert into select:       13.7 seconds inserted 10000000 Rows, about 729K ops/s

@doris-robot
Copy link

TeamCity be ut coverage result:
Function Coverage: 35.25% (8738/24789)
Line Coverage: 27.02% (71537/264707)
Region Coverage: 26.28% (37125/141294)
Branch Coverage: 23.17% (18985/81924)
Coverage Report: http://coverage.selectdb-in.cc/coverage/c18edeaac82ce60d904627415ccf50db731ba5cc_c18edeaac82ce60d904627415ccf50db731ba5cc/report/index.html

@wangbo
Copy link
Contributor

wangbo commented Mar 27, 2024

1 why this PR add a information schema table but not add Map in SchemaTable.TABLE_MAP, all schema table should register here.
2 please add regression test for this schema table.

@Vallishp
Copy link
Contributor Author

1 why this PR add a information schema table but not add Map in SchemaTable.TABLE_MAP, all schema table should register here. 2 please add regression test for this schema table.

Thanks for comments.

  1. routines are already registered in schema table.TABLE_MAP, but there where handling code in both be and fe, with this PR added scanner in be and fe to return stored procedure info.
  2. yes, will add regression test

Copy link
Contributor

@xinyiZzz xinyiZzz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@xinyiZzz
Copy link
Contributor

run buildall

@github-actions github-actions bot added the approved Indicates a PR has been approved by one committer. label Mar 27, 2024
@github-actions
Copy link
Contributor

PR approved by at least one committer and no changes requested.

@github-actions
Copy link
Contributor

PR approved by anyone and no changes requested.

@xinyiZzz
Copy link
Contributor

xinyiZzz commented Mar 27, 2024

good job!
after that, show procedure need to support filter, to allow use show procedure in Navicat and dbeaver. currently, we can create procedure in DBeaver, but show procedure will report error:
image
image

record in TODO list:
1. SELECT * FROM information_schema.ROUTINES support filter and order by, such as:

SELECT * FROM information_schema.ROUTINES WHERE ROUTINE_SCHEMA='__internal_schema' AND ROUTINE_TYPE IN ('PROCEDURE','FUNCTION') ORDER BY ROUTINE_NAME
  1. SHOW PROCEDURE STATUS support filter and support filter based on db name, such as:
SHOW PROCEDURE STATUS WHERE Db = '__internal_schema' AND Name LIKE 'pro5';

currently procedure only save the db id in metadata, so we need to use db name to find the db id and then filter it.

@doris-robot
Copy link

TPC-H: Total hot run time: 38648 ms
machine: 'aliyun_ecs.c7a.8xlarge_32C64G'
scripts: https://github.com/apache/doris/tree/master/tools/tpch-tools
Tpch sf100 test result on commit cc33cb8b92f9ba67d506397152cedd4039c5d941, data reload: false

------ Round 1 ----------------------------------
q1	17693	4371	4185	4185
q2	2115	159	156	156
q3	11015	1253	1260	1253
q4	11089	788	781	781
q5	7518	3085	3077	3077
q6	212	127	125	125
q7	1062	627	592	592
q8	9517	2069	2051	2051
q9	7397	6783	6691	6691
q10	8966	3498	3553	3498
q11	438	223	218	218
q12	376	209	198	198
q13	17806	2864	2892	2864
q14	240	209	207	207
q15	523	479	459	459
q16	497	377	374	374
q17	971	579	584	579
q18	7202	6538	6446	6446
q19	1584	1436	1436	1436
q20	563	271	281	271
q21	3582	2890	3035	2890
q22	364	310	297	297
Total cold run time: 110730 ms
Total hot run time: 38648 ms

----- Round 2, with runtime_filter_mode=off -----
q1	4161	4120	4080	4080
q2	340	238	237	237
q3	2989	2878	2835	2835
q4	1844	1568	1589	1568
q5	5331	5388	5385	5385
q6	201	117	115	115
q7	2245	1832	1859	1832
q8	3184	3294	3329	3294
q9	8698	8746	8668	8668
q10	3861	3803	3748	3748
q11	552	454	450	450
q12	736	527	541	527
q13	16913	2831	2897	2831
q14	281	244	249	244
q15	504	455	459	455
q16	476	426	417	417
q17	1756	1518	1470	1470
q18	7648	7192	7240	7192
q19	1613	1529	1538	1529
q20	1894	1739	1720	1720
q21	4949	4628	4644	4628
q22	549	466	460	460
Total cold run time: 70725 ms
Total hot run time: 53685 ms

@doris-robot
Copy link

TPC-DS: Total hot run time: 181914 ms
machine: 'aliyun_ecs.c7a.8xlarge_32C64G'
scripts: https://github.com/apache/doris/tree/master/tools/tpcds-tools
TPC-DS sf100 test result on commit cc33cb8b92f9ba67d506397152cedd4039c5d941, data reload: false

query1	954	360	355	355
query2	6562	2002	1893	1893
query3	6699	208	221	208
query4	31902	21392	21249	21249
query5	4244	416	392	392
query6	279	176	176	176
query7	4614	290	286	286
query8	228	171	174	171
query9	9090	2332	2313	2313
query10	556	250	253	250
query11	15524	14267	14208	14208
query12	145	93	86	86
query13	1627	417	423	417
query14	10189	7553	7573	7553
query15	268	215	192	192
query16	8142	274	262	262
query17	1944	581	552	552
query18	2107	284	287	284
query19	267	159	158	158
query20	93	90	89	89
query21	204	126	127	126
query22	5011	4826	4821	4821
query23	33580	32853	32898	32853
query24	11540	2880	2900	2880
query25	659	401	383	383
query26	1753	151	153	151
query27	3054	354	351	351
query28	7685	1898	1877	1877
query29	1031	622	605	605
query30	304	147	148	147
query31	972	729	708	708
query32	93	58	55	55
query33	764	249	240	240
query34	1125	480	491	480
query35	837	622	624	622
query36	1031	895	898	895
query37	178	63	63	63
query38	3570	3445	3433	3433
query39	1454	1450	1446	1446
query40	290	111	111	111
query41	52	45	48	45
query42	99	96	96	96
query43	490	439	448	439
query44	1268	717	727	717
query45	263	254	266	254
query46	1107	707	711	707
query47	1931	1838	1834	1834
query48	432	369	351	351
query49	1220	326	329	326
query50	774	374	362	362
query51	6717	6648	6527	6527
query52	116	88	93	88
query53	343	280	278	278
query54	315	233	223	223
query55	82	75	74	74
query56	244	220	218	218
query57	1205	1160	1126	1126
query58	240	205	203	203
query59	2952	2665	2631	2631
query60	262	241	253	241
query61	102	98	97	97
query62	654	448	434	434
query63	302	279	278	278
query64	6861	4094	4099	4094
query65	3122	3028	3056	3028
query66	1436	392	375	375
query67	15403	14941	15174	14941
query68	5372	518	533	518
query69	575	383	373	373
query70	1241	1140	1164	1140
query71	433	274	254	254
query72	6358	2877	2723	2723
query73	705	323	319	319
query74	7807	6475	6384	6384
query75	2954	2239	2209	2209
query76	3551	865	911	865
query77	398	269	253	253
query78	10979	10358	10108	10108
query79	8673	529	525	525
query80	2044	382	374	374
query81	543	220	218	218
query82	1354	92	87	87
query83	320	148	147	147
query84	288	83	77	77
query85	2119	329	315	315
query86	503	298	305	298
query87	3695	3546	3523	3523
query88	5130	2322	2294	2294
query89	552	380	384	380
query90	2032	178	177	177
query91	174	142	136	136
query92	65	48	49	48
query93	6401	498	489	489
query94	1210	177	177	177
query95	437	339	340	339
query96	618	278	260	260
query97	2680	2496	2479	2479
query98	223	219	208	208
query99	1201	917	889	889
Total cold run time: 309196 ms
Total hot run time: 181914 ms

@doris-robot
Copy link

Load test result on machine: 'aliyun_ecs.c7a.8xlarge_32C64G'

Load test result on commit cc33cb8b92f9ba67d506397152cedd4039c5d941 with default session variables
Stream load json:         19 seconds loaded 2358488459 Bytes, about 118 MB/s
Stream load orc:          59 seconds loaded 1101869774 Bytes, about 17 MB/s
Stream load parquet:      32 seconds loaded 861443392 Bytes, about 25 MB/s
Insert into select:       14.0 seconds inserted 10000000 Rows, about 714K ops/s

@doris-robot
Copy link

TeamCity be ut coverage result:
Function Coverage: 35.24% (8741/24803)
Line Coverage: 27.02% (71557/264799)
Region Coverage: 26.27% (37132/141335)
Branch Coverage: 23.17% (18985/81944)
Coverage Report: http://coverage.selectdb-in.cc/coverage/cc33cb8b92f9ba67d506397152cedd4039c5d941_cc33cb8b92f9ba67d506397152cedd4039c5d941/report/index.html

Copy link
Contributor

@wangbo wangbo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@xinyiZzz xinyiZzz merged commit 90c52dc into apache:master Mar 28, 2024
Jibing-Li added a commit that referenced this pull request Mar 29, 2024
* [fix](merge cloud) Fix cloud be set be tag map (#32864)

* [chore] Add gavinchou to collaborators (#32881)

* [chore](show) support statement to show views from table (#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)

* [Enhancement](ranger) Disable some permission operations when Ranger or LDAP are enabled (#32538)

Disable some permission operations when Ranger or LDAP are enabled.

* [chore](ci) exclude unstable trino_connector case (#32892)

Co-authored-by: stephen <hello-stephen@qq.com>

* [fix](Nereids) NPE when create table with implicit index type (#32893)

* [improvement](mtmv) Support more join types for query rewriting by materialized view (#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

* [Serde](Variant) support arrow serialization for varint type (#32780)

* [fix](multicatalog) fix no data error when read hive table on cosn (#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

* [fix](nereids)EliminateGroupByConstant should replace agg's output after removing constant group by keys (#32878)

* [Fix](executor)Fix regression test for test_active_queries/test_backend_active_tasks #32899

* [fix](iceberg) fix iceberg catalog bug and p2 test cases (#32898)

1. Fix iceberg catalog bug

    This PR #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.

* [revert](jni) revert part of #32455 (#32904)

* [fix](spill) Avoid releasing resources while spill tasks are executing (#32783)

* [chore](log) print query id before logging profile in be.INFO (#32922)

* [fix](grace-exit) Stop incorrectly of reportwork cause heap use after free #32929

* [improvement](decommission be) decommission check replica num (#32748)

* [fix](arrow-flight) Fix reach limit of connections error (#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

* [bugfix](cloud) few variable not initialized (#32868)

../../cloud/src/recycler/meta_checker.cpp
can cause uninitialised memory read.

* [fix](arrow-flight) Fix arrow flight sql compatible with JDK 17 and upgrade arrow 15.0.2 (#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

* [fix](spill) SpillStream's writer maybe may not have been finalized (#32931)

* [improvement](spill) Disable DistinctStreamingAgg when spill is enabled (#32932)

* [Improve](inverted_index) update clucene and improve array inverted index writer  (#32436)

* [Performance](exec) replace SipHash in function by XXHash (#32919)

* [feature](agg) add aggregate function sum0 (#32541)

* [improvement](mtmv) Support to get tables in materialized view when collecting table in plan (#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

* [enhance](mtmv)support olap table partition column is null (#32698)

* [enhancement](cloud) add table version to cloud (#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++.

* [fix](cloud) schema change from not null to null (#32913)

1. Use equals instead of == for type comparing
2. null bitmap size is reisze by size of ref column.

* [feature](Nereids): add ColumnPruningPostProcessor. (#32800)

* [case](rowpolicy)fix row policy has been exist (#32880)

* [fix](pipeline) fix use error row desc when origin block clear (#32803)

* [fix](Nereids) support variant column with index when create table (#32948)

* [opt](Nereids) support create table with variant type (#32953)

* [test](insert-overwrite) Add insert overwrite auto detect concurrency cases (#32935)

* [fix](compile) fe cannot compile in idea (#32955)

* [enhancement](plsql) Support select * from routines (#32866)

Support show of plsql procedure using select * from routines.

* [fix](trino-connector) fix `NoClassDefFoundError` of hudi `Utils` class (#32846)

Due to the change of this PR #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.

* [exec](column) change some complex column move to noexcept (#32954)

* [Enhancement](data skew) extends show data skew (#32732)

* [chore](test) let suite compatible with Nereids (#32964)

* Support identical column name in different index. (#32792)

* Limit the max string length to 1024 while collecting column stats to control BE memory usage. (#32470)

* [fix](merge-iterator) fix NOT_IMPLEMENTED_ERROR when read next block view (#32961)

* [improvement](executor)Add tag property for workload group #32874

* [fix](auth)unified workload and resource permission logic (#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 

```

---------

Co-authored-by: yujun <yu.jun.reach@gmail.com>
Co-authored-by: Gavin Chou <gavineaglechou@gmail.com>
Co-authored-by: xy720 <22125576+xy720@users.noreply.github.com>
Co-authored-by: yongjinhou <109586248+yongjinhou@users.noreply.github.com>
Co-authored-by: Dongyang Li <hello_stephen@qq.com>
Co-authored-by: stephen <hello-stephen@qq.com>
Co-authored-by: morrySnow <101034200+morrySnow@users.noreply.github.com>
Co-authored-by: seawinde <149132972+seawinde@users.noreply.github.com>
Co-authored-by: lihangyu <15605149486@163.com>
Co-authored-by: Yulei-Yang <yulei.yang0699@gmail.com>
Co-authored-by: starocean999 <40539150+starocean999@users.noreply.github.com>
Co-authored-by: wangbo <wangbo@apache.org>
Co-authored-by: Mingyu Chen <morningman@163.com>
Co-authored-by: Jerry Hu <mrhhsg@gmail.com>
Co-authored-by: zhiqiang <seuhezhiqiang@163.com>
Co-authored-by: Xinyi Zou <zouxinyi02@gmail.com>
Co-authored-by: Vallish Pai <vallishpai@gmail.com>
Co-authored-by: amory <wangqiannan@selectdb.com>
Co-authored-by: HappenLee <happenlee@hotmail.com>
Co-authored-by: Jensen <czjourney@163.com>
Co-authored-by: zhangdong <493738387@qq.com>
Co-authored-by: Yongqiang YANG <98214048+dataroaring@users.noreply.github.com>
Co-authored-by: jakevin <jakevingoo@gmail.com>
Co-authored-by: Mryange <59914473+Mryange@users.noreply.github.com>
Co-authored-by: zclllyybb <zhaochangle@selectdb.com>
Co-authored-by: Tiewei Fang <43782773+BePPPower@users.noreply.github.com>
Co-authored-by: Xin Liao <liaoxinbit@126.com>
yiguolei pushed a commit that referenced this pull request Apr 13, 2024
Support show of plsql procedure using select * from routines.
yiguolei pushed a commit that referenced this pull request Apr 17, 2024
Support show of plsql procedure using select * from routines.
@Vallishp Vallishp deleted the plsql_select_2303 branch September 11, 2024 18:54
morrySnow added a commit to morrySnow/incubator-doris that referenced this pull request Dec 4, 2025
@morrySnow morrySnow mentioned this pull request Dec 4, 2025
16 tasks
morrySnow added a commit to morrySnow/incubator-doris that referenced this pull request Dec 4, 2025
morrySnow added a commit to morrySnow/incubator-doris that referenced this pull request Dec 5, 2025
morrySnow added a commit to morrySnow/incubator-doris that referenced this pull request Dec 5, 2025
yiguolei pushed a commit that referenced this pull request Dec 8, 2025
nagisa-kunhah pushed a commit to nagisa-kunhah/doris that referenced this pull request Dec 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by one committer. meta-change reviewed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature] plsql support show procedure stmt

5 participants