Quantcast
Channel: SCN : Unanswered Discussions - SAP HANA and In-Memory Computing
Viewing all articles
Browse latest Browse all 4343

field or table alias is not allowed as an input of table functions

$
0
0

Hi,

 

I am trying to invoke a user defined table function through a SQL snippet like below.

 

SELECT (SELECT * FROM PKG_ORG_ORG_HAS_CHILDREN(org_id)) has_child

from PA_ORG_OWNER

where stud_id = 'np1';

 

But for some reason it will not accept column name as an IN parameter

 

Could not execute 'SELECT (SELECT * FROM PKG_ORG_ORG_HAS_CHILDREN(org_id)) has_child from PA_ORG_OWNER os where ...' in 2 ms 451 µs .

SAP DBTech JDBC: [7] (at 47): feature not supported: field or table alias is not allowed as an input of table functions: line 1 col 48 (at pos 47)

 

In general our product has a LOT of small Oracle PL/SQL functions that are invoked from SQL within application code. This is a huge bottleneck while migrating to HANA. Any best practice anyone can recommend for this issue?

 

-Thanks

nphana


Viewing all articles
Browse latest Browse all 4343

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>