Relax type incompatibility in order by clause (impl. dep. instead of XPST0004) #42
Labels
Enhancement
A change or improvement to an existing feature
Propose Closing with No Action
The WG should consider closing this issue with no action
XQuery
An issue related to XQuery
In the case where XQuery is used with very large sequences (billions/trillions of items or of tuples) with a parallel evaluation [1], the order by clause in its current state is costly to evaluate, because checking the primitive types for compatibility requires an extra step and materialization (in the case of Spark: an additional action to perform this check).
Relaxing this by making the order between different primitive types implementation-dependent (for the purpose of order by) rather than throwing XPST0004, in case of several incompatible primitive types in the comparison keys, would make parallel implementations more efficient.
[1] http://www.vldb.org/pvldb/vol14/p498-muller.pdf
The text was updated successfully, but these errors were encountered: