Filter an array of objects by IS NULL or IS NOT NULL does not work properly
See original GitHub issueCrateDB version: 1.1.5
JVM version: 1.8.0_131
OS version / environment description: Amaon Linux version 4.9.20-11.31.amzn1.x86_64
Problem description:
When attempting to filter an array of objects field by IS NULL or IS NOT NULL, improper results are returned. Column definition:
"product_info" ARRAY(OBJECT (STRICT) AS ( "amount" DOUBLE, "occurrences" INTEGER, "product_key" STRING, "quantity" DOUBLE ))
In this example, filtering by IS NULL returns values which are both NULL and NOT NULL:
In this example. filter by IS NOT NULL returns nothing:
Example column value:
[{product_key='BD5A79D7-23BA-4B20-96CC-08699A0BE342',occurrences='1',amount='7.38',quantity='1'},{product_key='8AB0DBBD-EAFA-441A-962B-7588706DFA98',occurrences='1',amount='6.76',quantity='1'},{product_key='2157E849-70D0-4587-98CF-7D6F9B9AB114',occurrences='1',amount='6.91',quantity='1'},{product_key='6152ECE4-056F-4906-92C0-7DE1B82AA79F',occurrences='1',amount='7.94',quantity='1'},{product_key='E34633B0-DBAE-4784-ACDD-D65EBF9E5D3D',occurrences='1',amount='4.77',quantity='1'}]
Issue Analytics
- State:
- Created 6 years ago
- Comments:6 (5 by maintainers)
Top GitHub Comments
@tellezb The issue has been resolved in versions 1.1.6 and 2.0.2
@tellezb the issue will be fixed within the next release. again, thanks for reporting.