-
Notifications
You must be signed in to change notification settings - Fork 13.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
EXPORT_CSV decimal separator format doesn't work for Decimal MySQL column #18218
Comments
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. For admin, please label this issue |
I ran into the identical bug, I would really appreciate a fix :) |
Has anyone managed to validate that this is an issue on Superset 2.0? |
@rusackas have the same issue |
@rusackas I can confirm that with superset 2.1.0 we have the same issue. The CSV separator is taken (from , to ;) but the decimal separator for money column in CSV does not work.
|
Actually there is a bug. I made some changes to the code on my local repository, but I'm not sure if this solves the root of the problem, so I didn't make a PR. The problem was in the function that handled python escape characters on the backend, in the superset/utils/csv.py file. |
Feel free to open a PR, or even a Draft PR, to better illustrate the point, and maybe it can lead to a resolution 🤞 |
I also ran into this - the issue appears to be that Superset changes decimals to |
Description
"Export to CSV" does not respect EXPORT_CSV decimal separator option for a MySQL Decimal(x,y) column. I see that column is mapped as NEWDECIMAL.
To make it work I have to CAST to FLOAT on SQL query. Then it's mapped as FLOAT and respects decimal separator as configured.
How to reproduce the bug
Expected results
Export CSV Option USES configured decimal separator when Datasource Column has as Decimal data type in a MySQL Datasource
Actual results
Export CSV Option DOES NOT use configured decimal separator when a Datasource Column has as Decimal data type in a MySQL Datasource
Environment
Checklist
The text was updated successfully, but these errors were encountered: