Skip to content

Conversation

@sollhui
Copy link
Contributor

@sollhui sollhui commented Dec 9, 2025

pick #57530

enable stream load record to audit log system table:

mysql> select * from __internal_schema.audit_log where query_id = '41380067396d434d85c9e1ffbc73899d'\G
*************************** 1. row ***************************
                            query_id: 41380067396d434d85c9e1ffbc73899d
                                time: 2025-10-30 18:54:54.079
                           client_ip: 10.16.10.7
                                user: root
                         frontend_ip: NULL
                             catalog: NULL
                                  db: regression_test_load_p0_stream_load_test
                               state: Success
                          error_code: NULL
                       error_message: OK
                          query_time: 61
                         cpu_time_ms: NULL
                   peak_memory_bytes: NULL
                          scan_bytes: 28
                           scan_rows: 2
                         return_rows: 2
                   shuffle_send_rows: NULL
                  shuffle_send_bytes: NULL
spill_write_bytes_from_local_storage: NULL
 spill_read_bytes_from_local_storage: NULL
       scan_bytes_from_local_storage: NULL
      scan_bytes_from_remote_storage: NULL
                       parse_time_ms: NULL
                       plan_times_ms: NULL
                   get_meta_times_ms: NULL
                   schedule_times_ms: NULL
                       hit_sql_cache: NULL
                       handled_in_fe: NULL
            queried_tables_and_views: NULL
                      chosen_m_views: NULL
                   changed_variables: NULL
                            sql_mode: NULL
                           stmt_type: NULL
                             stmt_id: NULL
                            sql_hash: NULL
                          sql_digest: NULL
                            is_query: NULL
                          is_nereids: NULL
                         is_internal: NULL
                      workload_group: NULL
                       compute_group: NULL
                                stmt: STREAM LOAD: table=test_stream_load_record, label=41380067396d434d85c9e1ffbc73899d, status=Success, total_rows=2, loaded_rows=2, filtered_rows=0, unselected_rows=0, load_bytes=28, url=
1 row in set (0.01 sec)

What problem does this PR solve?

Issue Number: close #xxx

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

…che#57530)

enable stream load record to audit log system table:
```
mysql> select * from __internal_schema.audit_log where query_id = '41380067396d434d85c9e1ffbc73899d'\G
*************************** 1. row ***************************
                            query_id: 41380067396d434d85c9e1ffbc73899d
                                time: 2025-10-30 18:54:54.079
                           client_ip: 10.16.10.7
                                user: root
                         frontend_ip: NULL
                             catalog: NULL
                                  db: regression_test_load_p0_stream_load_test
                               state: Success
                          error_code: NULL
                       error_message: OK
                          query_time: 61
                         cpu_time_ms: NULL
                   peak_memory_bytes: NULL
                          scan_bytes: 28
                           scan_rows: 2
                         return_rows: 2
                   shuffle_send_rows: NULL
                  shuffle_send_bytes: NULL
spill_write_bytes_from_local_storage: NULL
 spill_read_bytes_from_local_storage: NULL
       scan_bytes_from_local_storage: NULL
      scan_bytes_from_remote_storage: NULL
                       parse_time_ms: NULL
                       plan_times_ms: NULL
                   get_meta_times_ms: NULL
                   schedule_times_ms: NULL
                       hit_sql_cache: NULL
                       handled_in_fe: NULL
            queried_tables_and_views: NULL
                      chosen_m_views: NULL
                   changed_variables: NULL
                            sql_mode: NULL
                           stmt_type: NULL
                             stmt_id: NULL
                            sql_hash: NULL
                          sql_digest: NULL
                            is_query: NULL
                          is_nereids: NULL
                         is_internal: NULL
                      workload_group: NULL
                       compute_group: NULL
                                stmt: STREAM LOAD: table=test_stream_load_record, label=41380067396d434d85c9e1ffbc73899d, status=Success, total_rows=2, loaded_rows=2, filtered_rows=0, unselected_rows=0, load_bytes=28, url=
1 row in set (0.01 sec)
```
@sollhui sollhui requested a review from yiguolei as a code owner December 9, 2025 08:03
@sollhui
Copy link
Contributor Author

sollhui commented Dec 9, 2025

run buildall

@hello-stephen
Copy link
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?

@hello-stephen
Copy link
Contributor

BE UT Coverage Report

Increment line coverage 1.39% (4/287) 🎉

Increment coverage report
Complete coverage report

Category Coverage
Function Coverage 53.15% (18350/34526)
Line Coverage 38.74% (168692/435494)
Region Coverage 33.49% (130447/389475)
Branch Coverage 34.41% (56282/163549)

@github-actions github-actions bot added the approved Indicates a PR has been approved by one committer. label Dec 18, 2025
@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.

@yiguolei yiguolei merged commit f34ee31 into apache:branch-4.0 Dec 18, 2025
23 of 27 checks passed
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. reviewed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants