hello-stephen commented on code in PR #70976:
URL: https://github.com/apache/doris/pull/70976#discussion_r4754571269


##########
regression-test/suites/query_p0/session_variable/test_spill_session_variable_ranges.groovy:
##########
@@ -39,7 +39,7 @@ suite("test_spill_session_variable_ranges", "p0") {
             "order_qt_${variable}_restored"("SELECT @@${variable}")
             test {
                 sql "SET SESSION ${variable}='not_an_integer'"
-                exception "Incorrect argument type to variable '${variable}'"
+                exception "${variable} must be a finite number"

Review Comment:
   [P2] Restore the spill regression's type-error expectation
   
   For `SET SESSION spill_hash_join_partition_count='not_an_integer'` (the 
first range), `VariableMgr.parseAndCheckValue` invokes the integer parser 
before `NumericRange.check`. It converts the resulting `NumberFormatException` 
to `ERR_WRONG_TYPE_FOR_VAR` (`Incorrect argument type to variable 
'spill_hash_join_partition_count'`), so the newly expected `must be a finite 
number` substring is never returned. `TestAction` checks that the exception 
contains this text, causing the p0 suite to fail here before completing the 
ranges. Restore the type-error expectation, consistent with 
`NegativeNumericParameterTest.testMalformedNumericInputsUseTypeErrors`.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to