This is my first posted question here so I hope the format is acceptable.
I am able to execute get_ddl() and DESC PROCEDURE for all of our stored procedures but some have a null body when using describe and are cut short when using the get_ddl(). If I connect with the user that is the owner of the SP it does show me the whole procedure. I have also granted all privileges on the procedures to my ETL user in the schema and I still can't see all the code.
This is the result of running get_ddl() on the SP, it is missing the sql command variable and everything after:
CREATE OR REPLACE PROCEDURE "SP_test"()
RETURNS VARCHAR(16777216)
LANGUAGE JAVASCRIPT
EXECUTE AS OWNER
AS '';
I am able to call the SP with a user that is not the owner and it works correctly. The account admin role was also not able to see the full procedure for all the SP's.
Can someone give me a hand?
Thanks, James