[teiid-issues] [JBoss JIRA] (TEIID-5714) Can't push cross source function

SHI HONG CHIN (Jira) issues at jboss.org
Thu Apr 4 20:44:00 EDT 2019


    [ https://issues.jboss.org/browse/TEIID-5714?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13718295#comment-13718295 ] 

SHI HONG CHIN commented on TEIID-5714:
--------------------------------------

Thanks for filing and fixing this bug for me. In version 12.0 and 12.1, I personally tested that if the function parameter refer to the table column from the *different model*, the error will occur. I had configured Teiid log level to ALL, and it shows error like "function not supported by source".

I will try the snapshot version.

> Can't push cross source function
> --------------------------------
>
>                 Key: TEIID-5714
>                 URL: https://issues.jboss.org/browse/TEIID-5714
>             Project: Teiid
>          Issue Type: Bug
>          Components: Query Engine
>            Reporter: Steven Hawkins
>            Assignee: Steven Hawkins
>            Priority: Major
>             Fix For: 12.2, 12.1.1
>
>
> With two sources, MODEL1 and MODEL2, with a function on MODEL1:
> CREATE FOREIGN FUNCTION "dbo.examplefunc"(col1 string, col2 date, col3 boolean) returns bigdecimal;
>  
> A query of the function against only a table on MODEL2 will fail with "cannot be pushed to source":
> SELECT MODEL1."dbo.examplefunc"(TAB1.STRINGCOL, TAB1.DATE, TRUE) FROM MODEL2.TABLE1 TAB1



--
This message was sent by Atlassian Jira
(v7.12.1#712002)


More information about the teiid-issues mailing list