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

[Enhancement] Support audic statistics for insert statement #29901

Merged
merged 3 commits into from
Aug 28, 2023

Conversation

liuyehcf
Copy link
Contributor

@liuyehcf liuyehcf commented Aug 24, 2023

Fixes #issue
To add some statistics of CPU, Memory, Scanbytes, Scanrows for INSERT INTO statements.

What type of PR is this:

  • BugFix
  • Feature
  • Enhancement
  • Refactor
  • UT
  • Doc
  • Tool

Does this PR entail a change in behavior?

  • Yes, this PR will result in a change in behavior.
  • No, this PR will not result in a change in behavior.

If yes, please specify the type of change:

  • Interface/UI changes: syntax, type conversion, expression evaluation, display information
  • Parameter changes: default values, similar parameters but with different default values
  • Policy changes: use new policy to replace old one, functionality automatically enabled
  • Feature removed
  • Miscellaneous: upgrade & downgrade compatibility, etc.

Checklist:

  • I have added test cases for my bug fix or my new feature
  • This pr needs user documentation (for new or modified features or behaviors)
    • I have added documentation for my new feature or new function

Bugfix cherry-pick branch check:

  • I have checked the version labels which the pr will be auto-backported to the target branch
    • 3.1
    • 3.0
    • 2.5
    • 2.4

Signed-off-by: liuyehcf <1559500551@qq.com>
Signed-off-by: liuyehcf <1559500551@qq.com>
Seaven
Seaven previously approved these changes Aug 25, 2023
Signed-off-by: liuyehcf <1559500551@qq.com>
@sonarqubecloud
Copy link

SonarCloud Quality Gate failed.    Quality Gate failed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell C 38 Code Smells

0.0% 0.0% Coverage
0.0% 0.0% Duplication

warning The version of Java (11.0.20) you have used to run this analysis is deprecated and we will stop accepting it soon. Please update to at least Java 17.
Read more here

idea Catch issues before they fail your Quality Gate with our IDE extension sonarlint SonarLint

@wanpengfei-git
Copy link
Collaborator

[FE Incremental Coverage Report]

😞 fail : 21 / 43 (48.84%)

file detail

path covered_line new_line coverage not_covered_line_detail
🔵 com/starrocks/qe/QeProcessorImpl.java 8 22 36.36% [180, 181, 182, 187, 188, 189, 190, 191, 195, 196, 197, 199, 200, 201]
🔵 com/starrocks/qe/DefaultCoordinator.java 10 18 55.56% [893, 894, 895, 896, 897, 898, 899, 900]
🔵 com/starrocks/service/FrontendServiceImpl.java 1 1 100.00% []
🔵 com/starrocks/qe/StmtExecutor.java 2 2 100.00% []

@wanpengfei-git
Copy link
Collaborator

[BE Incremental Coverage Report]

😞 fail : 0 / 68 (00.00%)

file detail

path covered_line new_line coverage not_covered_line_detail
🔵 src/exec/pipeline/sink/export_sink_operator.cpp 0 1 00.00% [195]
🔵 src/exec/pipeline/sink/iceberg_table_sink_operator.cpp 0 1 00.00% [64]
🔵 src/exec/pipeline/pipeline_driver_executor.cpp 0 19 00.00% [335, 336, 338, 339, 340, 341, 343, 344, 347, 350, 351, 353, 354, 355, 356, 357, 359, 360, 363]
🔵 src/exec/pipeline/olap_table_sink_operator.cpp 0 1 00.00% [141]
🔵 src/exec/pipeline/audit_statistics_reporter.cpp 0 29 00.00% [33, 35, 36, 37, 38, 39, 42, 43, 47, 48, 49, 50, 52, 54, 55, 57, 59, 60, 61, 62, 63, 67, 68, 69, 70, 71, 72, 73, 75]
🔵 src/runtime/query_statistics.cpp 0 14 00.00% [58, 59, 60, 61, 62, 63, 64, 65, 67, 68, 69, 70, 71, 72]
🔵 src/exec/pipeline/exec_state_reporter.cpp 0 2 00.00% [165, 175]
🔵 src/exec/pipeline/sink/memory_scratch_sink_operator.cpp 0 1 00.00% [49]

@kangkaisen kangkaisen merged commit 728573e into StarRocks:main Aug 28, 2023
@liuyehcf
Copy link
Contributor Author

@Mergifyio backport branch-3.1

@mergify
Copy link
Contributor

mergify bot commented Aug 30, 2023

backport branch-3.1

✅ Backports have been created

@liuyehcf
Copy link
Contributor Author

@Mergifyio backport branch-3.0

@liuyehcf
Copy link
Contributor Author

@Mergifyio backport branch-2.5

mergify bot pushed a commit that referenced this pull request Aug 30, 2023
* [Enhancement] Support audic statistics for insert statement

Signed-off-by: liuyehcf <1559500551@qq.com>

* update test

Signed-off-by: liuyehcf <1559500551@qq.com>

* update 2

Signed-off-by: liuyehcf <1559500551@qq.com>

---------

Signed-off-by: liuyehcf <1559500551@qq.com>
(cherry picked from commit 728573e)

# Conflicts:
#	fe/fe-core/src/main/java/com/starrocks/qe/DefaultCoordinator.java
#	fe/fe-core/src/main/java/com/starrocks/qe/scheduler/Coordinator.java
#	fe/fe-core/src/main/java/com/starrocks/service/FrontendServiceImpl.java
@mergify
Copy link
Contributor

mergify bot commented Aug 30, 2023

backport branch-3.0

✅ Backports have been created

@mergify
Copy link
Contributor

mergify bot commented Aug 30, 2023

backport branch-2.5

✅ Backports have been created

mergify bot pushed a commit that referenced this pull request Aug 30, 2023
* [Enhancement] Support audic statistics for insert statement

Signed-off-by: liuyehcf <1559500551@qq.com>

* update test

Signed-off-by: liuyehcf <1559500551@qq.com>

* update 2

Signed-off-by: liuyehcf <1559500551@qq.com>

---------

Signed-off-by: liuyehcf <1559500551@qq.com>
(cherry picked from commit 728573e)

# Conflicts:
#	be/src/exec/pipeline/pipeline_driver_executor.h
#	be/src/exec/pipeline/sink/iceberg_table_sink_operator.cpp
#	fe/fe-core/src/main/java/com/starrocks/qe/DefaultCoordinator.java
#	fe/fe-core/src/main/java/com/starrocks/qe/scheduler/Coordinator.java
#	fe/fe-core/src/main/java/com/starrocks/service/FrontendServiceImpl.java
mergify bot pushed a commit that referenced this pull request Aug 30, 2023
* [Enhancement] Support audic statistics for insert statement

Signed-off-by: liuyehcf <1559500551@qq.com>

* update test

Signed-off-by: liuyehcf <1559500551@qq.com>

* update 2

Signed-off-by: liuyehcf <1559500551@qq.com>

---------

Signed-off-by: liuyehcf <1559500551@qq.com>
(cherry picked from commit 728573e)

# Conflicts:
#	be/src/exec/pipeline/olap_table_sink_operator.cpp
#	be/src/exec/pipeline/pipeline_driver_executor.cpp
#	be/src/exec/pipeline/pipeline_driver_executor.h
#	be/src/exec/pipeline/sink/iceberg_table_sink_operator.cpp
#	fe/fe-core/src/main/java/com/starrocks/qe/DefaultCoordinator.java
#	fe/fe-core/src/main/java/com/starrocks/qe/scheduler/Coordinator.java
#	fe/fe-core/src/main/java/com/starrocks/service/FrontendServiceImpl.java
liuyehcf added a commit that referenced this pull request Aug 31, 2023
…29901) (#30175)

* [Enhancement] Support audic statistics for insert statement (#29901)

---------

Signed-off-by: liuyehcf <1559500551@qq.com>
(cherry picked from commit 728573e)

# Conflicts:
#	be/src/exec/pipeline/olap_table_sink_operator.cpp
#	be/src/exec/pipeline/pipeline_driver_executor.cpp
#	be/src/exec/pipeline/pipeline_driver_executor.h
#	be/src/exec/pipeline/sink/iceberg_table_sink_operator.cpp
#	fe/fe-core/src/main/java/com/starrocks/qe/DefaultCoordinator.java
#	fe/fe-core/src/main/java/com/starrocks/qe/scheduler/Coordinator.java
#	fe/fe-core/src/main/java/com/starrocks/service/FrontendServiceImpl.java

* solve conflict

Signed-off-by: liuyehcf <1559500551@qq.com>

---------

Signed-off-by: liuyehcf <1559500551@qq.com>
Co-authored-by: liuyehcf <1559500551@qq.com>
liuyehcf added a commit that referenced this pull request Aug 31, 2023
…29901) (#30174)

* [Enhancement] Support audic statistics for insert statement (#29901)

---------

Signed-off-by: liuyehcf <1559500551@qq.com>
(cherry picked from commit 728573e)

# Conflicts:
#	be/src/exec/pipeline/pipeline_driver_executor.h
#	be/src/exec/pipeline/sink/iceberg_table_sink_operator.cpp
#	fe/fe-core/src/main/java/com/starrocks/qe/DefaultCoordinator.java
#	fe/fe-core/src/main/java/com/starrocks/qe/scheduler/Coordinator.java
#	fe/fe-core/src/main/java/com/starrocks/service/FrontendServiceImpl.java

* solve conflict

Signed-off-by: liuyehcf <1559500551@qq.com>

---------

Signed-off-by: liuyehcf <1559500551@qq.com>
Co-authored-by: liuyehcf <1559500551@qq.com>
liuyehcf added a commit that referenced this pull request Aug 31, 2023
…29901) (#30173)

* [Enhancement] Support audic statistics for insert statement (#29901)

---------

Signed-off-by: liuyehcf <1559500551@qq.com>
(cherry picked from commit 728573e)

# Conflicts:
#	fe/fe-core/src/main/java/com/starrocks/qe/DefaultCoordinator.java
#	fe/fe-core/src/main/java/com/starrocks/qe/scheduler/Coordinator.java
#	fe/fe-core/src/main/java/com/starrocks/service/FrontendServiceImpl.java

* solfe conflict

Signed-off-by: liuyehcf <1559500551@qq.com>

---------

Signed-off-by: liuyehcf <1559500551@qq.com>
Co-authored-by: liuyehcf <1559500551@qq.com>
Jay-ju pushed a commit to Jay-ju/starrocks that referenced this pull request Sep 7, 2023
…s#29901)

* [Enhancement] Support audic statistics for insert statement

Signed-off-by: liuyehcf <1559500551@qq.com>

* update test

Signed-off-by: liuyehcf <1559500551@qq.com>

* update 2

Signed-off-by: liuyehcf <1559500551@qq.com>

---------

Signed-off-by: liuyehcf <1559500551@qq.com>
@jaogoy jaogoy requested a review from yingtingdong September 14, 2023 08:51
@ZiheLiu ZiheLiu mentioned this pull request Sep 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants