dice icon indicating copy to clipboard operation
dice copied to clipboard

EXISTS: wrong count when different types of keys

Open JaiminPatel345 opened this issue 8 months ago • 4 comments

Steps to reproduce

EXISTS command give wrong output when 1 key is not exists while others exists and one of existed key is different type

Image

Image

Expected output

here

  • foo : bar
  • cnt : 4
  • k3 : null
EXISTS foo cnt k3
OK 2

Observed output

EXISTS foo cnt k3
OK 3

JaiminPatel345 avatar Mar 20 '25 15:03 JaiminPatel345

Similar to #1597

Abhijeetsng97 avatar Mar 20 '25 17:03 Abhijeetsng97

Image

Hey @JaiminPatel345 I am not able to reproduce the issue, can you tell me more specifics about the same as I'm working on this issue.

cskarthik7 avatar Mar 22 '25 20:03 cskarthik7

SET foo and cnt then exit from CLI now again you can get values with that issues

Image

JaiminPatel345 avatar Mar 23 '25 15:03 JaiminPatel345

Similar to #1597

@Abhijeetsng97 I think not same because the cause is different . this unexpected behavior came when you exit from CLI and again go there

JaiminPatel345 avatar Mar 23 '25 15:03 JaiminPatel345