You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks for the report. It is indeed unfortunate that we silently fall back to null. The offending piece of code is quite old, so let's see what happens if we fix that.
…eturned script return type does not match #2200
We now attempt a best-effort conversion for return values for which the intended CommandOutput does not match. Specifically, Boolean and Integer outputs attempt return value parsing.
…eturned script return type does not match #2200
We now attempt a best-effort conversion for return values for which the intended CommandOutput does not match. Specifically, Boolean and Integer outputs attempt return value parsing.
Bug Report
Current Behavior
There is a string key named
a
, which value is1
in Redis.I want to read the value as
Long
by lua script.However, it returns
null
unexpectedlly.Input Code
Expected behavior/code
return
1
as expected ( OR maybe throw exception ) . Does NOT returnnull
silently.Environment
Possible Solution
Enhance type conversion compatibility. Throw an exception when the types are still not compatible.
Additional context
BTW, Redisson client works well in same situation.
The text was updated successfully, but these errors were encountered: