Closed GoogleCodeExporter closed 8 years ago
I've realized the problem is caused by the "where" predicate (i.e., "where
$TfDfOverDocs.($attribute) == $TfDfOverCol.($attribute)"
in which I use .($attribute) to refer to different attribute each time. If I
replace
($attribute) with concrete attribute name (i.e., $TfDfOverDocs.genre) then the
code
runs.
Is there any way to achieve this kind of generic behavior?
Original comment by Avishay.Livne
on 6 May 2010 at 9:03
I was able to successfully compile your query on the current trunk version (rev
598) without the error message. I believe this was fixed a while back with
another issue on join predicates. Let us know if you continue to have trouble.
A computed attribute should work just fine, as long as the computation is not a
part of the join. For example, this is not supported:
$Ps = join $attribute in ('x','y'), $TfDfOverDocs, $TfDfOverCol
where $TfDfOverDocs.($attribute) == $TfDfOverCol.($attribute)
into $TfDfOverDocs;
because it computes the attribute in the join.
Original comment by Kevin.Be...@gmail.com
on 10 Jul 2010 at 1:05
Original issue reported on code.google.com by
Avishay.Livne
on 5 May 2010 at 3:47Attachments: