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.

Blank columns in output when using 'Export Resultset' option

See original GitHub issue

If I run certain MySQL queries which give correct results in DBeaver’s results window, and then use the ‘Export Resultset’ option, certain columns are missing from the exported output (i.e. the relevant fields are always blank). This is the case for all of the outputted file types (CSV, HTML, JSON, XML).

Unfortunately, I have not yet been unable to create a trivial query and dataset to give you which reproduces this error - it only occurs with a relatively complex query on a confidential dataset. (I have compared the outputs produced by HeidiSQL and these are all correct i.e. with no missing columns). What I can, however, say is that there are no unusual characters in the missing fields - they all take the very simple format described by the regexes S[0-9]{1,6} and M[0-9]{1,6}.

Is there any way I can debug this locally? Can you think of any reason for data not being written to the output file?

If it is necessary, I could try to produce a redacted version of the confidential query (with changes to column names and table data), but this is likely to take a significant amount of time.

FYI, I am running the latest version of DBeaver (4.0.5) on Windows 10.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:7 (1 by maintainers)

github_iconTop GitHub Comments

7reactions
Prajna-Tycommented, Jun 9, 2020

When exporting the data, in “format setting”, try setting binaries to “inline”, and select “binary” for encoding. That’s how I resolved the issue.

0reactions
TimTinkerscommented, Sep 18, 2019

This issue is still affecting me and I believe it has to do with pulling values out of JSON objects. This is the only issue that is preventing me from abandoning MySQL Workbench entirely.

I’ve created a $15 bounty for this issue.

Read more comments on GitHub >

github_iconTop Results From Across the Web

ResultSet returns blank column in CSV - java - Stack Overflow
Then, I use the resultset as input into an OpenCSV CSV writer and when I open the CSV the gender column comes out...
Read more >
SQL Server Management Studio (SSMS) – how to save results ...
Go to Tools > Options · Navigate to Query Results > SQL Server > Results to Grid, then check “Include column headers when...
Read more >
Common Issues with the SQL Server Import and Export Wizard
Here are a few issues I've found while loading data from one SQL Server database into another. Identity Columns. The wizard doesn't treat...
Read more >
Formatting Query Results to CSV in Oracle SQL Developer
Get back to Query Result view, and export the grid (manually) with csv option and set Left&Right Enclosure as . Uncheck the Header,...
Read more >
Remove empty columns from csv file in powershell
Thanks for your reply MotoX80. Actually i have Collection with all the columns(some empty) data in $Collection and I am trying to add...
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