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.

Error executing row count: duplicate column name

See original GitHub issue

If I execute the following query:

SELECT * FROM a
JOIN b ON b.foo = a.foo

And then click “Calculate total row count” below the result set, it says: Error executing row count.

When checking out the error, it turns out that this is the generated query for the row count:

SELECT COUNT(*) FROM (SELECT * FROM a
JOIN b ON b.foo=a.foo
) dbvrcnt

Which results in the following error on server:

[1060] (conn:99533643) Duplicate column name 'foo'
Query is: SELECT COUNT(*) FROM (SELECT * FROM a
JOIN b ON b.foo=a.foo
) dbvrcnt

DBeaver 6.3.3 MariaDB server

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
slokhorstcommented, Jan 28, 2020

Wow you guys are fast. I can confirm that the issue is fixed in the latest git build. Thanks!!

0reactions
uslsscommented, Jan 28, 2020

verified

Read more comments on GitHub >

github_iconTop Results From Across the Web

SQL Duplicate column name error - Stack Overflow
is there an id column in the profiles table that is conflicting with another table's id column? You are selecting all columns, I...
Read more >
SQL error messages and exceptions - Oracle Help Center
01503, The column <columnName> on table <tableName> has been modified by adding a not null ... 2201W, Invalid row count for FIRST/NEXT, must...
Read more >
Resolve the error "HIVE_INVALID_METADATA” in Athena
This error happens when the AWS Glue table schema contains duplicate column names or columns with the same name as partition columns.
Read more >
Duplicate Column Name causing issues in Copy Activity
once column names shows up then go back to Source Dataset and unselect "First Row as Header" and in Source Tab of Copy...
Read more >
Why Am I Receiving a Duplicate Columns Error? - Fivetran
One column name uses camel case, one has a double underscore, and one has a single underscore. However, Fivetran normalizes all the column...
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