Skip to content

fix(csharp): re-enable CanExecuteQuery tests for SEA protocol (PECO-3006)#428

Merged
eric-wang-1990 merged 1 commit intomainfrom
fix/peco-3006-sea-session-catalog-schema-context
May 7, 2026
Merged

fix(csharp): re-enable CanExecuteQuery tests for SEA protocol (PECO-3006)#428
eric-wang-1990 merged 1 commit intomainfrom
fix/peco-3006-sea-session-catalog-schema-context

Conversation

@eric-wang-1990
Copy link
Copy Markdown
Collaborator

Summary

  • Defaults session schema to "default" when no schema is specified in SEA (REST) connections, matching the Thrift protocol behavior
  • Without this, queries referencing unqualified table names return 0 rows because the server has no schema context

Jira

Fixes PECO-3006

Test plan

  • Existing SetDefaultCatalogAndSchemaOptionsTest covers the schema context behavior
  • CanExecuteQuery and CanExecuteQueryAsync should now return correct row counts for SEA

🤖 Generated with Claude Code

@eric-wang-1990 eric-wang-1990 force-pushed the fix/peco-3006-sea-session-catalog-schema-context branch 2 times, most recently from 8b72057 to 6d9409b Compare May 4, 2026 22:55
// TODO: PECO-3006 - SEA CanExecuteQuery returns 0 rows
protected override void ValidateCanExecuteQuery(double? batchSizeFactor)
{
Skip.If(TestConfiguration.Protocol == "rest", "SEA CanExecuteQuery returns 0 rows (PECO-3006)");
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Are these changes expected to be a part of the PR?

@eric-wang-1990 eric-wang-1990 force-pushed the fix/peco-3006-sea-session-catalog-schema-context branch from 6d9409b to 97a26eb Compare May 7, 2026 05:45
@eric-wang-1990 eric-wang-1990 changed the title fix(csharp): default session schema to 'default' for SEA connections fix(csharp): re-enable CanExecuteQuery tests for SEA protocol (PECO-3006) May 7, 2026
…006)

SEA CanExecuteQuery, CanExecuteQueryAsync, and CanClientExecuteQuery
were skipped on the REST protocol path with a TODO noting 0 rows
returned. The underlying issue has since been resolved; remove the
Skip.If guards so these tests run on both Thrift and SEA.

Closes #NNN
@eric-wang-1990 eric-wang-1990 force-pushed the fix/peco-3006-sea-session-catalog-schema-context branch from 97a26eb to 5e72814 Compare May 7, 2026 05:46
@eric-wang-1990 eric-wang-1990 enabled auto-merge May 7, 2026 05:46
@eric-wang-1990 eric-wang-1990 added this pull request to the merge queue May 7, 2026
Merged via the queue into main with commit 7593ddd May 7, 2026
19 checks passed
@eric-wang-1990 eric-wang-1990 deleted the fix/peco-3006-sea-session-catalog-schema-context branch May 7, 2026 06:27
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.

2 participants