Skip to content

Add unit tests for JDBCTraceQueryDAO SQL building#13797

Closed
currenjin wants to merge 1 commit intoapache:masterfrom
currenjin:test/jdbc-trace-query-dao
Closed

Add unit tests for JDBCTraceQueryDAO SQL building#13797
currenjin wants to merge 1 commit intoapache:masterfrom
currenjin:test/jdbc-trace-query-dao

Conversation

@currenjin
Copy link
Copy Markdown
Contributor

Add unit tests for JDBCTraceQueryDAO SQL building

Add tests to verify the SQL query construction in JDBCTraceQueryDAO, covering:

  • queryByTraceId: TABLE_COLUMN and trace_id conditions appear correctly

  • queryBySegmentIdList: segment_id uses IN clause (not OR)

  • queryByTraceIdWithInstanceId: both trace_id and service_instance_id IN clauses are properly enclosed with parentheses, with correct AND between them

  • If this pull request closes/resolves/fixes an existing issue, replace the issue number. Closes #.

  • Update the CHANGES log.

@currenjin
Copy link
Copy Markdown
Contributor Author

Consolidated into #13800.

@currenjin currenjin closed this Apr 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant