Closed mathemancer closed 3 years ago
Note that the implementer should include a test to make sure that the new functionality is correct.
Let me try this
Let me try this
Go for it!
@Runanka are u working on this. If not can i take it up
@tushar912 I think you can go for it. It's been quite some time, and it's a pretty quick issue.
Bug Description
Currently, the method
JSONColumn.prepare_string
defined insrc/cc_catalog_airflow/dags/provider_api_scripts/common/storage/columns.py
uses the defaultensure_ascii=True
when dumping the given object to a string. This is not necessary, since PostgreSQL (and all downstream machinery) can handle the full UTF-8 charset. Thus, we should setensure_ascii=False
in thejson.dumps
call within theJSONColumn.prepare_string
method.Expected behavior
We should be able to save strings containing non-ASCII characters.