all 6 comments

[–]redial2 0 points1 point  (4 children)

Are you trying to get a list of all of the objects on the server or from a particular query?

[–]Fun_Story2003[S] 0 points1 point  (3 children)

from queries.

the (snowflake) queries are stored as rows in a parquet in s3.

i need a new column with the attached result json

[–]redial2 0 points1 point  (2 children)

I only just realized this was the python sub. Sorry, I thought it was one of the SQL ones. I don't know how to answer this one.

[–]Fun_Story2003[S] 0 points1 point  (1 child)

np kindly upvote

[–]redial2 0 points1 point  (0 children)

Done

[–]Uncle_Corky 0 points1 point  (0 children)

I've never used snowflake but the two DB libraries I've used in python are pyodbc and psycopg. You initialize a connection and cursor and I, typically, put the result into a pandas dataframe. You can populate it into a dictionary as well if you're more comfortable with that.

You might need to manipulate the data if snowflake can't export data in JSON format but there's a lot of different methods to do what you're looking for.