Skip to content
This repository has been archived by the owner on Jun 4, 2024. It is now read-only.

Athena connector never activates Query tab #577

Open
technicallyfeasible opened this issue Apr 17, 2020 · 0 comments
Open

Athena connector never activates Query tab #577

technicallyfeasible opened this issue Apr 17, 2020 · 0 comments

Comments

@technicallyfeasible
Copy link

I have an Athena database that I wanted to connect to. The connection itself seems to work but the Query tab stays deactivated.

Investigating the issue in the code, the problem boils down to no tables being returned by the connector and the interface then does not enable the Query tab.

The core issue is this line in the athena connector:

        const tableNames = dataSet.slice(1).map(row => row.Data[0].VarCharValue);

Our Athena database has only a single table so this will return an empty array.

I do not see any reason for this slice(1) to be there and why the first table should not be returned. Can anyone shed some light on this? Generally this should be an easy fix.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant