filipniziol
Esteemed Contributor

Hi @sathyafmt ,

Are you using Serverless SQL Warehouse?
It seems accessing Volumes in Serverless SQL Warehouse is not implemented yet.

When running the code in SQL Warehouse I am getting the same error as you:

filipniziol_1-1727938886360.png

When running in notebook, it works just fine

filipniziol_0-1727937970832.png

Could you check whether you can create a table and it reads from the directory?

 

CREATE TABLE my_json_table
USING json
OPTIONS (
  path '/Volumes/my_catalog/my_schema/jsondir/test.json',
  multiline 'true'
);

 

 When running this using SQL Serverless Warehouse I got an error:

filipniziol_2-1727939904989.png

Then when trying to enable volumes I got an error:

filipniziol_3-1727939950286.png

To sum up I believe as of now in Serverless SQL Warehouse volumes are not supported.

View solution in original post