Skip to content

fix(clouseau): indexing for document fields of unrecognized types#129

Merged
pgj merged 1 commit intocloudant-labs:mainfrom
pgj:fix/clouseau/indexing-fields-with-unrecognized-types
Jan 26, 2026
Merged

fix(clouseau): indexing for document fields of unrecognized types#129
pgj merged 1 commit intocloudant-labs:mainfrom
pgj:fix/clouseau/indexing-fields-with-unrecognized-types

Conversation

@pgj
Copy link
Contributor

@pgj pgj commented Jan 24, 2026

In 312656f, a distinction between each supported type has been introduced but there was no case defined for values with unrecognized types. This change broke the compatibility with the 2.x line of releases because such instances will make the process crash, while originally there should have been only a warning issued in the logs and the field in question should have been ignored.

Restore this case from the 2.x code base and while there, merge all the similar cases (about handling fields with various number types) since they share the same body. They could be broken down to further cases later if there is a specific reason to do so.

In 312656f, a distinction between each supported type has been
introduced but there was no case defined for values with
unrecognized types.  This change broke the compatibility with the
2.x line of releases because such instances will make the process
crash, while originally there should have been only a warning
issued in the logs and the field in question should have been
ignored.

Restore this case from the 2.x code base and while there, merge
all the similar cases (about handling fields with various number
types) since they share the same body.  They could be broken down
to further cases later if there is a specific reason to do so.
Copy link
Contributor

@jiahuili430 jiahuili430 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1

@pgj pgj merged commit a98c7b9 into cloudant-labs:main Jan 26, 2026
1 check passed
@pgj pgj deleted the fix/clouseau/indexing-fields-with-unrecognized-types branch January 26, 2026 19:34
@pgj pgj mentioned this pull request Jan 26, 2026
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.

3 participants