Skip to content

[fix](profile) Disable profile collection by default#57314

Merged
airborne12 merged 2 commits into
apache:masterfrom
zhiqiang-hhhh:fix-profile-memory
Oct 31, 2025
Merged

[fix](profile) Disable profile collection by default#57314
airborne12 merged 2 commits into
apache:masterfrom
zhiqiang-hhhh:fix-profile-memory

Conversation

@zhiqiang-hhhh

@zhiqiang-hhhh zhiqiang-hhhh commented Oct 24, 2025

Copy link
Copy Markdown
Contributor

What problem does this PR solve?

  1. Memory consumption of profile is still a big problem of FE. So disable it by default.
  2. For load task, we need to update counter even if profile is not enabled, since final http return msg needs it.

Related PR: #xxx

Problem Summary:

Release note

None

Check List (For Author)

  • Test

    • Regression test
    • Unit Test
    • Manual test (add detailed scripts or steps below)
    • No need to test or manual test. Explain why:
      • This is a refactor/code format and no logic has been changed.
      • Previous test can cover this change.
      • No code files have been changed.
      • Other reason
  • Behavior changed:

    • No.
    • Yes.
  • Does this need documentation?

    • No.
    • Yes.

Check List (For Reviewer who merge this PR)

  • Confirm the release note
  • Confirm test cases
  • Confirm document
  • Add branch pick label

@hello-stephen

Copy link
Copy Markdown
Contributor

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

Please clearly describe your PR:

  1. What problem was fixed (it's best to include specific error reporting information). How it was fixed.
  2. Which behaviors were modified. What was the previous behavior, what is it now, why was it modified, and what possible impacts might there be.
  3. What features were added. Why was this function added?
  4. Which code was refactored and why was this part of the code refactored?
  5. Which functions were optimized and what is the difference before and after the optimization?

@zhiqiang-hhhh

Copy link
Copy Markdown
Contributor Author

run buildall

@doris-robot

Copy link
Copy Markdown
TPC-DS: Total hot run time: 189635 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 e4df4f27415e790ccc1d29ac21cc71f6c286a9ad, data reload: false

query1	1024	433	393	393
query2	6551	1675	1708	1675
query3	6756	224	226	224
query4	26410	23662	23214	23214
query5	4950	636	480	480
query6	345	244	236	236
query7	4662	534	311	311
query8	315	266	253	253
query9	8727	2597	2584	2584
query10	548	358	303	303
query11	15727	15100	14966	14966
query12	186	123	120	120
query13	1693	567	446	446
query14	12714	9263	9304	9263
query15	259	199	180	180
query16	7858	686	520	520
query17	1629	817	660	660
query18	2110	484	407	407
query19	308	246	203	203
query20	147	134	128	128
query21	220	148	138	138
query22	4546	4734	4484	4484
query23	35177	33787	34091	33787
query24	8673	2496	2506	2496
query25	627	535	480	480
query26	1329	278	164	164
query27	2762	536	372	372
query28	4404	2258	2204	2204
query29	791	626	502	502
query30	316	246	221	221
query31	949	842	775	775
query32	78	79	78	78
query33	638	432	342	342
query34	1050	892	542	542
query35	853	873	805	805
query36	991	1045	911	911
query37	126	105	89	89
query38	3747	3810	3502	3502
query39	1479	1447	1421	1421
query40	219	125	113	113
query41	59	58	58	58
query42	128	105	112	105
query43	498	496	485	485
query44	1269	743	745	743
query45	183	184	169	169
query46	876	983	643	643
query47	1753	1793	1715	1715
query48	390	429	314	314
query49	775	499	402	402
query50	648	683	413	413
query51	3982	3986	3838	3838
query52	116	107	101	101
query53	238	269	202	202
query54	604	579	545	545
query55	84	87	85	85
query56	333	339	297	297
query57	1197	1196	1117	1117
query58	297	278	270	270
query59	2586	2661	2544	2544
query60	342	349	323	323
query61	157	153	156	153
query62	808	722	688	688
query63	231	188	199	188
query64	4420	1162	839	839
query65	4016	3951	3963	3951
query66	1074	433	327	327
query67	15622	15490	14792	14792
query68	7395	943	592	592
query69	454	328	293	293
query70	1367	1299	1250	1250
query71	473	337	328	328
query72	6027	4883	4824	4824
query73	548	573	361	361
query74	8906	9059	8745	8745
query75	3753	3324	2832	2832
query76	3131	1158	740	740
query77	783	397	355	355
query78	9696	9737	8998	8998
query79	2114	830	592	592
query80	622	574	508	508
query81	505	257	232	232
query82	516	163	131	131
query83	273	262	255	255
query84	250	106	99	99
query85	894	461	435	435
query86	379	298	295	295
query87	3684	3744	3613	3613
query88	3880	2260	2253	2253
query89	379	334	293	293
query90	1982	218	218	218
query91	178	190	132	132
query92	83	69	60	60
query93	1774	989	648	648
query94	650	457	332	332
query95	409	332	310	310
query96	490	574	282	282
query97	2932	2965	2861	2861
query98	253	228	207	207
query99	1351	1424	1262	1262
Total cold run time: 280711 ms
Total hot run time: 189635 ms

@doris-robot

Copy link
Copy Markdown
ClickBench: Total hot run time: 27.48 s
machine: 'aliyun_ecs.c7a.8xlarge_32C64G'
scripts: https://github.com/apache/doris/tree/master/tools/clickbench-tools
ClickBench test result on commit e4df4f27415e790ccc1d29ac21cc71f6c286a9ad, data reload: false

query1	0.05	0.04	0.05
query2	0.08	0.05	0.05
query3	0.26	0.08	0.08
query4	1.60	0.12	0.11
query5	0.27	0.26	0.25
query6	1.18	0.66	0.64
query7	0.03	0.03	0.03
query8	0.05	0.04	0.04
query9	0.60	0.53	0.53
query10	0.57	0.57	0.58
query11	0.16	0.10	0.11
query12	0.15	0.12	0.12
query13	0.61	0.60	0.61
query14	1.01	1.00	1.00
query15	0.85	0.84	0.85
query16	0.39	0.40	0.41
query17	1.05	1.01	1.02
query18	0.22	0.21	0.20
query19	2.02	1.78	1.82
query20	0.02	0.02	0.01
query21	15.44	0.20	0.12
query22	5.07	0.06	0.04
query23	15.71	0.26	0.09
query24	3.01	0.78	0.30
query25	0.07	0.07	0.05
query26	0.15	0.13	0.13
query27	0.08	0.05	0.05
query28	3.38	1.14	0.95
query29	12.54	3.91	3.37
query30	0.30	0.15	0.12
query31	2.82	0.59	0.39
query32	3.23	0.55	0.47
query33	3.11	3.11	3.08
query34	15.95	5.12	4.51
query35	4.51	4.55	4.55
query36	0.68	0.51	0.50
query37	0.10	0.07	0.07
query38	0.06	0.05	0.04
query39	0.04	0.03	0.04
query40	0.18	0.14	0.12
query41	0.09	0.04	0.03
query42	0.04	0.03	0.03
query43	0.04	0.04	0.04
Total cold run time: 97.77 s
Total hot run time: 27.48 s

@zhiqiang-hhhh

Copy link
Copy Markdown
Contributor Author

run feut

@hello-stephen

Copy link
Copy Markdown
Contributor

FE Regression Coverage Report

Increment line coverage 100% (0/0) 🎉
Increment coverage report
Complete coverage report

2 similar comments
@hello-stephen

Copy link
Copy Markdown
Contributor

FE Regression Coverage Report

Increment line coverage 100% (0/0) 🎉
Increment coverage report
Complete coverage report

@hello-stephen

Copy link
Copy Markdown
Contributor

FE Regression Coverage Report

Increment line coverage 100% (0/0) 🎉
Increment coverage report
Complete coverage report

@zhiqiang-hhhh

Copy link
Copy Markdown
Contributor Author

run buildall

@doris-robot

Copy link
Copy Markdown
TPC-DS: Total hot run time: 189691 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 0135240c8e498a8bd98802e9eab5bc4b4b8b4a32, data reload: false

query1	1061	405	424	405
query2	6565	1680	1727	1680
query3	6749	222	221	221
query4	26903	23609	23378	23378
query5	5030	639	505	505
query6	327	247	225	225
query7	4656	500	298	298
query8	307	267	259	259
query9	8708	2591	2598	2591
query10	552	347	298	298
query11	15211	15050	14736	14736
query12	178	123	113	113
query13	1692	584	434	434
query14	11281	9391	9459	9391
query15	211	190	172	172
query16	7678	700	535	535
query17	1341	782	651	651
query18	2049	494	399	399
query19	231	237	183	183
query20	150	138	128	128
query21	248	144	124	124
query22	4575	4698	4484	4484
query23	34890	33891	33670	33670
query24	8565	2613	2573	2573
query25	639	537	516	516
query26	1414	278	161	161
query27	2720	515	358	358
query28	4480	2211	2206	2206
query29	833	651	506	506
query30	309	234	197	197
query31	897	825	750	750
query32	118	71	69	69
query33	651	397	350	350
query34	895	876	563	563
query35	846	833	758	758
query36	945	978	882	882
query37	124	109	81	81
query38	3518	3577	3484	3484
query39	1434	1401	1403	1401
query40	213	124	118	118
query41	59	62	57	57
query42	126	109	113	109
query43	483	509	473	473
query44	1236	724	733	724
query45	183	177	168	168
query46	927	978	631	631
query47	1726	1786	1750	1750
query48	387	413	324	324
query49	776	509	408	408
query50	666	689	402	402
query51	3798	3941	3883	3883
query52	111	108	97	97
query53	241	270	201	201
query54	595	590	519	519
query55	82	86	84	84
query56	315	306	304	304
query57	1145	1195	1099	1099
query58	283	270	285	270
query59	2472	2645	2551	2551
query60	350	340	318	318
query61	155	146	143	143
query62	775	723	647	647
query63	240	198	198	198
query64	4448	1121	869	869
query65	4001	3969	3944	3944
query66	1085	428	340	340
query67	15147	15185	14932	14932
query68	8467	871	598	598
query69	488	328	290	290
query70	1393	1328	1259	1259
query71	514	363	324	324
query72	5779	4867	4956	4867
query73	708	587	357	357
query74	8877	8902	8877	8877
query75	4018	3389	2802	2802
query76	3817	1208	770	770
query77	817	401	312	312
query78	9515	9827	8890	8890
query79	1391	878	601	601
query80	709	581	496	496
query81	493	258	229	229
query82	219	156	138	138
query83	289	266	243	243
query84	302	112	95	95
query85	859	486	425	425
query86	339	281	302	281
query87	3723	3772	3589	3589
query88	2913	2276	2284	2276
query89	393	326	287	287
query90	2154	225	223	223
query91	163	171	137	137
query92	84	68	65	65
query93	1120	988	641	641
query94	682	449	341	341
query95	399	322	313	313
query96	494	604	290	290
query97	2951	2967	2880	2880
query98	246	212	199	199
query99	1419	1364	1298	1298
Total cold run time: 276741 ms
Total hot run time: 189691 ms

@doris-robot

Copy link
Copy Markdown
ClickBench: Total hot run time: 27.37 s
machine: 'aliyun_ecs.c7a.8xlarge_32C64G'
scripts: https://github.com/apache/doris/tree/master/tools/clickbench-tools
ClickBench test result on commit 0135240c8e498a8bd98802e9eab5bc4b4b8b4a32, data reload: false

query1	0.05	0.05	0.05
query2	0.09	0.05	0.05
query3	0.26	0.08	0.08
query4	1.62	0.11	0.11
query5	0.26	0.26	0.25
query6	1.19	0.66	0.64
query7	0.03	0.02	0.03
query8	0.06	0.04	0.04
query9	0.59	0.53	0.50
query10	0.57	0.57	0.56
query11	0.17	0.11	0.12
query12	0.15	0.12	0.12
query13	0.62	0.60	0.60
query14	1.01	0.99	1.01
query15	0.84	0.82	0.83
query16	0.40	0.39	0.42
query17	1.02	1.02	1.02
query18	0.22	0.20	0.20
query19	1.86	1.84	1.77
query20	0.02	0.01	0.01
query21	15.43	0.19	0.13
query22	5.07	0.07	0.05
query23	15.69	0.24	0.11
query24	2.99	1.24	0.31
query25	0.07	0.06	0.07
query26	0.14	0.13	0.14
query27	0.06	0.05	0.06
query28	3.98	1.12	0.95
query29	12.54	3.94	3.31
query30	0.28	0.14	0.12
query31	2.82	0.60	0.37
query32	3.23	0.55	0.47
query33	2.97	3.04	3.07
query34	15.89	5.18	4.57
query35	4.51	4.61	4.55
query36	0.66	0.50	0.49
query37	0.10	0.06	0.06
query38	0.06	0.03	0.04
query39	0.04	0.03	0.03
query40	0.18	0.15	0.13
query41	0.08	0.03	0.03
query42	0.04	0.03	0.02
query43	0.04	0.03	0.04
Total cold run time: 97.9 s
Total hot run time: 27.37 s

@hello-stephen

Copy link
Copy Markdown
Contributor

FE Regression Coverage Report

Increment line coverage 100% (0/0) 🎉
Increment coverage report
Complete coverage report

@hello-stephen

Copy link
Copy Markdown
Contributor

FE UT Coverage Report

Increment line coverage 100% (0/0) 🎉
Increment coverage report
Complete coverage report

@zhiqiang-hhhh

Copy link
Copy Markdown
Contributor Author

run buildall

@hello-stephen

Copy link
Copy Markdown
Contributor

FE Regression Coverage Report

Increment line coverage 100% (0/0) 🎉
Increment coverage report
Complete coverage report

@zhiqiang-hhhh

Copy link
Copy Markdown
Contributor Author

run buildall

@zhiqiang-hhhh

Copy link
Copy Markdown
Contributor Author

run buildall

@doris-robot

Copy link
Copy Markdown
ClickBench: Total hot run time: 28.29 s
machine: 'aliyun_ecs.c7a.8xlarge_32C64G'
scripts: https://github.com/apache/doris/tree/master/tools/clickbench-tools
ClickBench test result on commit 7f47b0a54130f2a39fc4ccd73797dab8f6097301, data reload: false

query1	0.06	0.05	0.05
query2	0.10	0.05	0.05
query3	0.25	0.08	0.09
query4	1.64	0.12	0.11
query5	0.28	0.26	0.25
query6	1.19	0.66	0.65
query7	0.03	0.03	0.03
query8	0.06	0.04	0.04
query9	0.62	0.54	0.53
query10	0.60	0.60	0.59
query11	0.17	0.12	0.12
query12	0.16	0.13	0.13
query13	0.62	0.62	0.60
query14	1.03	1.02	1.02
query15	0.86	0.84	0.88
query16	0.40	0.40	0.40
query17	1.03	1.05	1.05
query18	0.22	0.21	0.21
query19	1.99	1.87	1.85
query20	0.02	0.01	0.01
query21	15.43	0.20	0.14
query22	5.02	0.07	0.05
query23	15.66	0.27	0.11
query24	2.69	1.00	0.67
query25	0.09	0.06	0.07
query26	0.16	0.14	0.14
query27	0.06	0.07	0.06
query28	4.78	1.17	0.94
query29	12.55	4.25	3.45
query30	0.29	0.14	0.13
query31	2.83	0.63	0.39
query32	3.23	0.55	0.48
query33	3.14	3.04	3.12
query34	15.90	5.18	4.56
query35	4.61	4.56	4.56
query36	0.70	0.52	0.50
query37	0.11	0.07	0.07
query38	0.06	0.05	0.04
query39	0.04	0.03	0.03
query40	0.19	0.15	0.15
query41	0.10	0.04	0.04
query42	0.05	0.03	0.03
query43	0.05	0.04	0.04
Total cold run time: 99.07 s
Total hot run time: 28.29 s

@doris-robot

Copy link
Copy Markdown

BE UT Coverage Report

Increment line coverage 0.00% (0/3) 🎉

Increment coverage report
Complete coverage report

Category Coverage
Function Coverage 52.75% (18066/34250)
Line Coverage 37.98% (163836/431354)
Region Coverage 32.37% (125003/386178)
Branch Coverage 33.73% (54636/161989)

@hello-stephen

Copy link
Copy Markdown
Contributor

BE Regression && UT Coverage Report

Increment line coverage 100.00% (3/3) 🎉

Increment coverage report
Complete coverage report

Category Coverage
Function Coverage 72.33% (24320/33624)
Line Coverage 59.16% (255370/431693)
Region Coverage 55.07% (215559/391458)
Branch Coverage 56.40% (91924/162974)

@hello-stephen

Copy link
Copy Markdown
Contributor

FE Regression Coverage Report

Increment line coverage 100% (0/0) 🎉
Increment coverage report
Complete coverage report

@zhiqiang-hhhh

Copy link
Copy Markdown
Contributor Author

run buildall

@hello-stephen

Copy link
Copy Markdown
Contributor

BE UT Coverage Report

Increment line coverage 🎉

Increment coverage report
Complete coverage report

Category Coverage
Function Coverage 52.75% (18067/34250)
Line Coverage 37.98% (163841/431351)
Region Coverage 32.36% (124966/386175)
Branch Coverage 33.71% (54612/161987)

@doris-robot

Copy link
Copy Markdown
ClickBench: Total hot run time: 28.09 s
machine: 'aliyun_ecs.c7a.8xlarge_32C64G'
scripts: https://github.com/apache/doris/tree/master/tools/clickbench-tools
ClickBench test result on commit fe439345c36bdb2b20d1f46a9a57b9b8f005e6e7, data reload: false

query1	0.06	0.05	0.04
query2	0.10	0.05	0.05
query3	0.25	0.08	0.08
query4	1.72	0.12	0.12
query5	0.29	0.26	0.26
query6	1.20	0.66	0.65
query7	0.04	0.02	0.02
query8	0.06	0.05	0.05
query9	0.62	0.53	0.54
query10	0.59	0.59	0.58
query11	0.17	0.12	0.12
query12	0.15	0.12	0.12
query13	0.62	0.62	0.60
query14	1.01	1.01	1.02
query15	0.87	0.85	0.86
query16	0.40	0.40	0.41
query17	1.06	1.05	1.04
query18	0.23	0.21	0.21
query19	2.00	1.88	1.81
query20	0.02	0.02	0.01
query21	15.42	0.21	0.14
query22	4.97	0.07	0.06
query23	15.64	0.26	0.11
query24	2.15	1.06	0.51
query25	0.08	0.06	0.05
query26	0.15	0.15	0.14
query27	0.07	0.06	0.06
query28	4.34	1.19	0.93
query29	12.58	4.12	3.43
query30	0.28	0.14	0.11
query31	2.83	0.61	0.39
query32	3.23	0.56	0.48
query33	3.10	3.25	3.12
query34	15.94	5.18	4.54
query35	4.61	4.60	4.63
query36	0.67	0.51	0.49
query37	0.10	0.06	0.07
query38	0.07	0.05	0.04
query39	0.04	0.03	0.03
query40	0.18	0.14	0.14
query41	0.09	0.04	0.04
query42	0.04	0.03	0.03
query43	0.04	0.04	0.04
Total cold run time: 98.08 s
Total hot run time: 28.09 s

@hello-stephen

Copy link
Copy Markdown
Contributor

BE Regression && UT Coverage Report

Increment line coverage 100% (0/0) 🎉

Increment coverage report
Complete coverage report

Category Coverage
Function Coverage 71.45% (24024/33624)
Line Coverage 57.87% (249800/431690)
Region Coverage 52.94% (207242/391455)
Branch Coverage 54.67% (89099/162972)

@hello-stephen

Copy link
Copy Markdown
Contributor

FE Regression Coverage Report

Increment line coverage 100% (0/0) 🎉
Increment coverage report
Complete coverage report

@hello-stephen

Copy link
Copy Markdown
Contributor

BE Regression && UT Coverage Report

Increment line coverage 100% (0/0) 🎉

Increment coverage report
Complete coverage report

Category Coverage
Function Coverage 71.45% (24024/33624)
Line Coverage 57.87% (249799/431690)
Region Coverage 52.93% (207214/391455)
Branch Coverage 54.67% (89103/162972)

@hello-stephen

Copy link
Copy Markdown
Contributor

FE Regression Coverage Report

Increment line coverage 100% (0/0) 🎉
Increment coverage report
Complete coverage report

@github-actions github-actions Bot added the approved Indicates a PR has been approved by one committer. label Oct 31, 2025
@github-actions

Copy link
Copy Markdown
Contributor

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

@github-actions

Copy link
Copy Markdown
Contributor

PR approved by anyone and no changes requested.

@eldenmoon eldenmoon left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM

@airborne12 airborne12 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM

@airborne12 airborne12 merged commit 607adc5 into apache:master Oct 31, 2025
30 of 31 checks passed
github-actions Bot pushed a commit that referenced this pull request Oct 31, 2025
### What problem does this PR solve?

1. Memory consumption of profile is still a big problem of FE. So
disable it by default.
2. For load task, we need to update counter even if profile is not
enabled, since final http return msg needs it.
dwdwqfwe pushed a commit to dwdwqfwe/doris that referenced this pull request Oct 31, 2025
### What problem does this PR solve?

1. Memory consumption of profile is still a big problem of FE. So
disable it by default.
2. For load task, we need to update counter even if profile is not
enabled, since final http return msg needs it.
@zhiqiang-hhhh zhiqiang-hhhh deleted the fix-profile-memory branch October 31, 2025 06:54
yiguolei pushed a commit that referenced this pull request Nov 3, 2025
… (#57549)

Cherry-picked from #57314

Co-authored-by: zhiqiang <seuhezhiqiang@163.com>
liaoxin01 added a commit that referenced this pull request Jun 25, 2026
### What

- Gate the load counter update in
`Scanner::_collect_profile_before_close()` on a new virtual
`_should_update_load_counters()`:
- Base `Scanner` reports only when `_is_load` (classic
stream/broker/routine load scanners with src tuple desc).
- `FileScanner` additionally reports for `FILE_STREAM` scans: TVF based
loads (`http_stream`, group commit) plan the load source as a tvf query
scan without src tuple desc (`_is_load` is false), but their WHERE
clause filtered rows must still be reported as `NumberUnselectedRows` /
counted into `NumberTotalRows`.
- Add a deterministic regression case covering INSERT-SELECT / DELETE /
UPDATE whose scans filter out all rows.

### Why

For DELETE/UPDATE/INSERT INTO ... SELECT executed through the insert
path, rows filtered by query scan predicates (including runtime filters)
were added to the RuntimeState load counters. When all scanned rows are
filtered, `num_rows_load_success()` (total - filtered - unselected) goes
negative, BE reports a negative `dpp.norm.ALL`, and FE fails the
`insert_max_filter_ratio` check with errors like:

```
Insert has too many filtered data 0/-2 insert_max_filter_ratio is 1.000000
```

This only triggers with `enable_insert_strict=false` and
`insert_max_filter_ratio > 0` (the strict branch only checks
`filteredRows > 0`). The intermittency in the field comes from runtime
filter arrival timing: rows are only counted when the RF arrives in time
to filter inside the scanner.

This was historically gated by `if (!enable_profile && !_is_load)
return;` (already buggy with `enable_profile=true`), and became
unconditional after #57314 removed the early return.

Compared to the previous revision of this PR (thrift
`skip_query_scan_load_counters` option set by FE for DELETE/UPDATE):
- No thrift / FE changes needed.
- Also fixes plain INSERT INTO ... SELECT: `AbstractInsertExecutor` sets
`query_type=LOAD` for all insert-path commands, so the query-type based
gate still let OlapScanner predicate-filtered rows pollute the counters
there.
- `FILE_STREAM` is a precise discriminator: only the `http_stream` /
`group_commit` TVFs use it, and they require a backend id on the
ConnectContext (only present for stream-load style HTTP requests), so
they can never appear in a normal query/DELETE/UPDATE.

`FileScanner::_counter.num_rows_filtered` is only accumulated in
`_convert_to_output_block` (load-only path), so for `http_stream` the
`NumberFilteredRows` reported to clients comes from sink validation and
is unaffected by this gate.

### Test

- New regression case
`regression-test/suites/load_p0/insert/test_scan_filtered_rows_not_pollute_load_counter.groovy`:
uses value-column predicates on an AGGREGATE KEY table (cannot be pushed
down to storage, evaluated by scanner conjuncts) to deterministically
reproduce; before this fix the INSERT-SELECT/DELETE/UPDATE statements
fail with `0/-10`.
- `test_group_commit_http_stream` semantics preserved: `insert into ...
select from http_stream(...) where ...` still reports
`NumberUnselectedRows`/`NumberTotalRows` (the previous `_is_load`-only
attempt broke this with `expected: <6> but was: <5>`).
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. dev/4.0.1-merged reviewed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants