Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Table name starting with a digit causes the code completion to fail #81

Open
Aleksei-Poliakov opened this issue Mar 20, 2024 · 0 comments

Comments

@Aleksei-Poliakov
Copy link

# athenacli aleksei_ds_parity
us-east-1:aleksei_ds_parity> Exception in thread completion_refresh:
Traceback (most recent call last):
  File "/usr/local/lib/python3.9/threading.py", line 980, in _bootstrap_inner
    self.run()
  File "/usr/local/lib/python3.9/threading.py", line 917, in run
    self._target(*self._args, **self._kwargs)
  File "/usr/local/lib/python3.9/site-packages/athenacli/completion_refresher.py", line 71, in _bg_refresh
    refresher(completer, executor)
  File "/usr/local/lib/python3.9/site-packages/athenacli/completion_refresher.py", line 113, in refresh_tablespletions...                                                                                                                                                                                                                                                                                                                              
    completer.extend_columns(executor.table_columns(), kind='tables')
  File "/usr/local/lib/python3.9/site-packages/athenacli/completer.py", line 124, in extend_columns
    metadata[self.dbname][relname].append(column)
KeyError: '"2a"'

Probably doesn't matter - but I am running it against Athena:

pip install athenacli

export AWS_ACCESS_KEY_ID=...
export AWS_SECRET_ACCESS_KEY=...
export AWS_SESSION_TOKEN=...
export AWS_DEFAULT_REGION=us-east-1
export AWS_ATHENA_S3_STAGING_DIR=s3://my-bucket/athena
export AWS_ATHENA_WORK_GROUP=primary

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

No branches or pull requests

1 participant