apache / superset

Apache Superset is a Data Visualization and Data Exploration Platform
https://superset.apache.org/
Apache License 2.0
62.68k stars 13.84k forks source link

Problem uploading CSV to PostgreSQL database #8542

Closed Sascha-Gschwind closed 4 years ago

Sascha-Gschwind commented 5 years ago

When you try to upload a CSV that has parentheses in the title column to a PostgreSQL database it fails with an error, showing the column title.

If you upload the same file to a SQLite database it succeeds.

Expected results

The CSV can be successfully uploaded to a PostgreSQL database.

Actual results

The CSV can not be successfully uploaded to a PostgreSQL database.

Screenshots

CSV-Content: image

Error displayed when uploading to a PostgreSQL database: image

Database-Connection configuration: image

Link to CSV: https://etherscan.io/chart/tx?output=csv

How to reproduce the bug

  1. As an Admin go to "Sources" > "Databases" and Create a new database connection.
  2. Enter the connection string to a PostgreSQL database and ensure "Allow CSV Upload" is ticked
  3. Go to "Sources" > "Upload a CSV"
  4. Upload the CSV from https://etherscan.io/chart/tx?output=csv

Environment

Checklist

Make sure these boxes are checked before submitting your issue - thank you!

issue-label-bot[bot] commented 5 years ago

Issue-Label Bot is automatically applying the label #bug to this issue, with a confidence of 0.96. Please mark this comment with :thumbsup: or :thumbsdown: to give our bot feedback!

Links: app homepage, dashboard and code for this bot.

stale[bot] commented 4 years ago

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 .pinned to prevent stale bot from closing the issue.