Skip to content

JSON.MGET - Existing key has wrong Redis type #609

Closed

Description

@glassfox

HI, as part of migration to RedisJson 2.0.6 from 1.0.7 We found different behavior of v2 for Redis type error.

example for 2.0.6:

> JSON.SET akey1 . '{"obj1":{"obj2":{"val":1}}}'
> JSON.SET akey2 . '{"obj1":{"obj3":{"val":1}}}'
> SET akey3 'key not found in filesystem'
> JSON.MGET akey1 akey2 akey3 .

(error) Existing key has wrong Redis type
  1. in version 1.0.7 object with invalid type has been skipped.
  2. in version 2.0.6 received error.

I think that all error behaviors for MGET in v2 required to still the same as in v1.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions