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

~/.soda/configuration.yml not automatically used #1168

Closed
janet-can opened this issue Mar 24, 2022 · 0 comments · Fixed by #1249
Closed

~/.soda/configuration.yml not automatically used #1168

janet-can opened this issue Mar 24, 2022 · 0 comments · Fixed by #1249
Assignees
Labels
bug Something isn't working

Comments

@janet-can
Copy link
Contributor

Using soda-core-postgres, 3.0.0b4.
Python 3.9.2

I have created a configuration.yml file in my ~/.soda directory. If I try to use the following scan command that ought to implicitly find the file, it produces an error.

soda scan -d aws_postgres_retail checks.yml
Soda Core 3.0.0b4
No configuration file specified nor found on ~/.soda/configuration.yml
Unknown error while executing scan.
  | dictionary changed size during iteration
  | Stacktrace:
  | Traceback (most recent call last):
  |   File "/Users/Janet/.pyenv/versions/3.9.2/lib/python3.9/site-packages/soda/scan.py", line 267, in execute
  |     for data_source_scan_cfg in self._sodacl_cfg.data_source_scan_cfgs.values():
  | RuntimeError: dictionary changed size during iteration

But if I explicitly identify the configuration.yml and path, it works just fine.

soda scan -d aws_postgres_retail -c ~/.soda/configuration.yml checks.yml
Soda Core 3.0.0b4
Scan summary:
1/1 check PASSED: 
    orders in aws_postgres_retail
      row_count > 0 [PASSED]
All is good. No failures. No warnings. No errors.
@janet-can janet-can added the bug Something isn't working label Mar 24, 2022
@tombaeyens tombaeyens changed the title Scan command ignores configuration.yml unless explicitly identified with -c option ~/.soda/configuration.yml not automatically used Mar 28, 2022
m1n0 added a commit that referenced this issue Mar 30, 2022
m1n0 added a commit that referenced this issue Mar 30, 2022
m1n0 added a commit that referenced this issue Mar 31, 2022
linderttobias pushed a commit to linderttobias/soda-core that referenced this issue Sep 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants