question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Export CSV container database column names instead of report column names

See original GitHub issue

A clear and concise description of what the bug is. Export CSV contains database column names instead of report column names

This issue was previously reported here 2 years back https://github.com/apache/superset/issues/5792

Expected results

what you expected to happen. Expected result is a CSV to show report column names

Actual results

Currently it displays database column names

How to reproduce the bug

  1. Go to Any report
  2. Click on export to CSV
  3. And the report shows database column name instead of report column name

Environment

  • superset version: 1.2.0
  • python version: 3.7

Checklist

Make sure to follow these steps before submitting your issue - thank you!

  • I have checked the superset logs for python stacktraces and included it here as text if there are any.
  • I have reproduced the issue with at least the latest released version of superset.
  • I have checked the issue tracker for the same issue and I haven’t found one similar.

Additional context

Add any other context about the problem here.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:9 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
mandeeplohancommented, Sep 21, 2021
  • any feature flags active: ?

@junlincc Sorry to bug you here. Can you please help me with this https://github.com/apache/superset/issues/16749 I shall be thankful to you 😃

1reaction
renaldrozariocommented, Sep 21, 2021
  • Open a dataset for editing
  • Click on columns tab and create column labels
  • Click save
  • Click on a dataset name to get transferred to charts
  • In charts select visualisation type “Table” , query mode: “raw records”, column : Select all
  • Click Run
  • in the generated table the column names are labels, not the database names
  • Click on CSV button
  • In the generated CSV file the column names are database column names, the column labels are expected instead.
Read more comments on GitHub >

github_iconTop Results From Across the Web

SSRS csv export with comma in the column header names
The column name comes from the DataElementName property, or if that is blank, the Name property. Unfortunatly, neither allow commas or quoting.
Read more >
saving to csv reverts to text box names instead of headers
According to your description, you find the column header shows textbox name instead of the actual value in cell. Right? In Reporting Services, ......
Read more >
change the column header of when a report is exported to CSV
By default the column header is the table field name when a report is exported to CSV. So for end users, the field...
Read more >
Hide Column Titles When exporting report to CSV - IBM
There are two ways to accomplish this. 1) Set the Box Type to "None", run the report to Excel then save the output...
Read more >
Export from dashboard to CSV contains verbose names #5792
renaldrozario mentioned this issue on Sep 20, 2021. Export CSV container database column names instead of report column names #16750.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found