[teiid-issues] [JBoss JIRA] Closed: (TEIID-757) Oracle Spatial Connector is not properly adding ORDERED hint to SDO_RELATE function
Steven Hawkins (JIRA)
jira-events at lists.jboss.org
Mon Jan 31 10:12:40 EST 2011
[ https://issues.jboss.org/browse/TEIID-757?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Steven Hawkins closed TEIID-757.
--------------------------------
> Oracle Spatial Connector is not properly adding ORDERED hint to SDO_RELATE function
> -----------------------------------------------------------------------------------
>
> Key: TEIID-757
> URL: https://issues.jboss.org/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.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the teiid-issues
mailing list