sodadata / soda-sql

Soda SQL and Soda Spark have been deprecated and replaced by Soda Core. docs.soda.io/soda-core/overview.html
https://docs.soda.io/
Apache License 2.0
60 stars 15 forks source link

`soda create bigqurey` fails with exception #195

Closed vijaykiran closed 2 years ago

vijaykiran commented 2 years ago

    | Soda CLI version 2.1.2
  | Dialect initiated from the create command, cred is None.
  | Exception: 'NoneType' object is not subscriptable
Traceback (most recent call last):
  File "/Users/.../opt/anaconda3/envs/soda/lib/python3.7/site-packages/sodasql/cli/cli.py", line 97, in create
    dialect = Dialect.create_for_warehouse_type(warehouse_type)
  File "/Users/.../opt/anaconda3/envs/soda/lib/python3.7/site-packages/sodasql/scan/dialect.py", line 116, in create_for_warehouse_type
    KEY_WAREHOUSE_TYPE: warehouse_type}))
  File "/Users/.../opt/anaconda3/envs/soda/lib/python3.7/site-packages/sodasql/scan/dialect_parser.py", line 20, in __init__
    self.dialect = Dialect.create(self)
  File "/Users/.../opt/anaconda3/envs/soda/lib/python3.7/site-packages/sodasql/scan/dialect.py", line 108, in create
    return _warehouse_class(parser)
  File "/Users/.../opt/anaconda3/envs/soda/lib/python3.7/site-packages/sodasql/dialects/bigquery_dialect.py", line 50, in __init__
    self.project_id = self.account_info_dict['project_id']
TypeError: 'NoneType' object is not subscriptable
  | If you think this is a bug in Soda SQL, please open an issue at: https://github.com/sodadata/soda-sql/issues/new/choose
  | Starting new HTTPS connection (1): collect.soda.io:443
  | https://collect.soda.io:443 "POST /v1/traces HTTP/1.1" 200 0```