I am trying to create a CTAS table on s3 programatically in dremio using a python function, but the execution is getting terminated prematurely without creating the CTAS,
This runs fine when I run it on the UI directly, what could be reason for the premature termination
here is my function