• python
  • javascript
  • reactjs
  • sql
  • c#
  • java
Facebook Twitter Instagram
Devs Fixed
  • python
  • javascript
  • reactjs
  • sql
  • c#
  • java
Devs Fixed
Home ยป Resolved: Handling Single Quote in JSON using Python & Snowflake

Resolved: Handling Single Quote in JSON using Python & Snowflake

0
By Isaac Tonny on 17/06/2022 Issue
Share
Facebook Twitter LinkedIn

Question:

I am trying to insert the dictionary which is retrieved from a rest API into Snowflake column of variant datatype using the below python script
But ending up with the following error
I take it this is causing due to the single quote (‘) present in the string. how to handle this error? the same error comes even when using snowflake.connector library as well.

Answer:

Use parameter binding so that the quoting is handled automatically.

If you have better answer, please add a comment about this, thank you!

json python-3.x snowflake-cloud-data-platform snowflake-connector sqlalchemy
Share. Facebook Twitter LinkedIn

Related Posts

Resolved: How to convert Java bytecode to Webassembly using CheerpJ compiler

24/03/2023

Resolved: Is pandas groupby() function always produce a DataFrame with the same order respect to the column we group by?

24/03/2023

Resolved: Kivy widget hierarchy not behaving as expected

24/03/2023

Leave A Reply

© 2023 DEVSFIX.COM

Type above and press Enter to search. Press Esc to cancel.