SciDB AFL Operator Reference, “build”, page 128:
Is this true? I found that only dimensions are allowed in the expressions. Here is a very trivial example:
AFL% build(a, ii);
AFL% build(a, ii+42);
AFL% build(a, x);
UserException in file: src/query/ops/build/BuildArray.cpp function: BuildArray line: 340
Error id: scidb::SCIDB_SE_EXECUTION::SCIDB_LE_OP_BUILD_ERROR1
Error description: Error during query execution. Build expression should not access attributes.
Failed query id: 1102954778310[/quote]
Here ‘a’ has exactly one attribute ‘x’ and one index ‘i’ bounded to (1,2) . The array ‘a’ is loaded with 2, 2.
the first couple of builds use the schema from a, as it should, and some expressions involving dimensions i and constants. All is fine until
you try an expression with ‘x’, the one attribute in the array. Is this a bug or a typo in the manual?