Skip to content

fix(csharp): enforce SetOption validation for BatchSize, PollTime, QueryTimeout in SEA (PECO-3011)#448

Open
eric-wang-1990 wants to merge 1 commit into
mainfrom
worktree-fix+peco-3011-sea-statement-option-validation
Open

fix(csharp): enforce SetOption validation for BatchSize, PollTime, QueryTimeout in SEA (PECO-3011)#448
eric-wang-1990 wants to merge 1 commit into
mainfrom
worktree-fix+peco-3011-sea-statement-option-validation

Conversation

@eric-wang-1990
Copy link
Copy Markdown
Collaborator

Summary

  • StatementExecutionStatement.SetOption was silently accepting all values for BatchSize, PollTimeMilliseconds, QueryTimeoutSeconds, and BatchSizeStopCondition with no validation
  • Add the same ArgumentOutOfRangeException validation that the Thrift path (HiveServer2Statement) applies, so clients get consistent errors across both protocols
  • Also validate these options from connection properties at statement creation time (via constructor), matching Thrift's ValidateOptions behavior
  • Remove the Skip.If guards for CanSetOptionBatchSize, CanSetOptionPollTime, and CanSetOptionQueryTimeout in StatementTests

Test plan

  • All 24 CanSetOption{BatchSize,PollTime,QueryTimeout} test cases pass on SEA path (protocol: rest)

Closes #NNN

…eryTimeout in SEA (PECO-3011)

StatementExecutionStatement.SetOption silently accepted all values for
BatchSize, PollTimeMilliseconds, QueryTimeoutSeconds, and
BatchSizeStopCondition. Add the same ArgumentOutOfRangeException
validation that the Thrift path applies so clients get consistent
errors across both protocols. Also validate these options from
connection properties at statement creation time.

Remove the Skip.If guards for CanSetOptionBatchSize,
CanSetOptionPollTime, and CanSetOptionQueryTimeout in StatementTests.

Closes #NNN
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