Ian Maxon created ASTERIXDB-3145:
------------------------------------
Summary: Query w/ Composite array index fails to compile with
samples present
Key: ASTERIXDB-3145
URL: https://issues.apache.org/jira/browse/ASTERIXDB-3145
Project: Apache AsterixDB
Issue Type: Bug
Components: COMP - Compiler, IDX - Indexes
Affects Versions: 0.9.8.1
Reporter: Ian Maxon
Fix For: 0.9.8.1
If you run ANALYZE DATASET on the datasets in the test-suite
array-index/composite-index-queries, the 9th query in the suite:
{code:java}FROM Dataset2 D2,
Dataset1 D1
WHERE D1.field1 /* +indexnl */ = TO_BIGINT(D2.field1) AND
( SOME D1I IN D1.items
SATISFIES D1I.field2 /* +indexnl */ = TO_BIGINT(D2.field2) AND
D1I.field3 /* +indexnl */ = TO_BIGINT(D2.field3) ) AND
D1.field4 /* +indexnl */ = TO_BIGINT(D2.field4)
SELECT D2.field1, D2.field2, D2.field3, D2.field4
ORDER BY D2.field1, D2.field2, D2.field3, D2.field4;{code}
Will fail to compile with the following message:
{code:java}ASX1079: Compilation error: Could not infer type for variable
'$$85'. {code}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)