Quantcast
Channel: Active questions tagged python - Stack Overflow
Viewing all articles
Browse latest Browse all 17389

Snowflake Response Json Has Whitespace?

$
0
0

Here is a simple snowflake query that selects an object:

sf = connection.cursor()sf.execute(f"""SELECT OBJECT_CONSTRUCT('foo', 'bar')""")for row in sf.fetchall():    yield row

When I run this, the response appears to be:

['{\n"foo": "bar"\n}']

With whitespace chars and all. Ideally it would just come back as a dict, but if that's not possible could it come back without whitespace?


Viewing all articles
Browse latest Browse all 17389

Latest Images

Trending Articles



Latest Images

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