]
Steven Hawkins updated TEIID-757:
---------------------------------
Fix Version/s: 6.2.0
Affects Version/s: (was: 6.1.0)
(was: 6.2.0)
Oracle Spatial Connector is not properly adding ORDERED hint to
SDO_RELATE function
-----------------------------------------------------------------------------------
Key: TEIID-757
URL:
https://jira.jboss.org/jira/browse/TEIID-757
Project: Teiid
Issue Type: Bug
Components: JDBC Connector
Affects Versions: 6.0.0
Reporter: Larry O'Leary
Assignee: Steven Hawkins
Priority: Minor
Fix For: 6.2.0
Oracle Spatial connector is rewriting a query that contains an SDO_RELATE() function
using the ORDERED hint. The format/syntax of the hint does not conform to Oracle
documentation. It does not appear this results in an error but I also have not verified
that the ORDERED hint is actually getting used either. The following query:
SELECT a.INTKEY FROM BQT1.SMALLA A, BQT1.SMALLB B WHERE sdo_relate(A.OBJECTVALUE,
b.OBJECTVALUE, 'mask=ANYINTERACT') = true
Is rewritten as:
SELECT /* + ORDERED */A.IntKey FROM SmallA A, SmallB B WHERE SDO_RELATE(A.ObjectValue,
B.ObjectValue, 'mask=ANYINTERACT') = 'true'
Where as Oracle documentation seems to indicate that the query should actually be:
SELECT /*+ ORDERED */ A.IntKey FROM SmallA A, SmallB B WHERE SDO_RELATE(A.ObjectValue,
B.ObjectValue, 'mask=ANYINTERACT') = 'true'
Notice the spacing in the hint as "SELECT_/*+_ORDERED_*/_A.IntKey..." instead
of "SELECT_/*_+_ORDERED_*/A.IntKey..."
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: