-
Notifications
You must be signed in to change notification settings - Fork 72
[Review] Refactor ConfigContainer to use dask config #392
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
Merged
Merged
Changes from 27 commits
Commits
Show all changes
30 commits
Select commit
Hold shift + click to select a range
6097526
Add dask config module to dask-sql
ayushdg 38d2f29
Update context to use dask-sql config instead of ConfigContainer
ayushdg e842343
Merge branch 'main' of github.com:dask-contrib/dask-sql into enh-dask…
ayushdg 7f530bb
Remove distributed utils_test fixtures and add client fixture
ayushdg bc03e35
Reduce connection timeout for non reachable test
ayushdg b86940d
Merge branch 'enh-pytest-client' into enh-dask-sql-config
ayushdg a818de8
Rerun tests
ayushdg 00edaf4
Merge remote-tracking branch 'upstream/main' into enh-pytest-client
charlesbluca 81563ea
Mount tempfile directory in independent worker container
charlesbluca a0e479b
Skip test_fsql on external cluster
charlesbluca 2404115
Relax external cluster's conda packages
charlesbluca d77f061
Add fixme note to failing fugue test due to missing triad module
ayushdg 60185a6
Merge branch 'enh-pytest-client' into enh-dask-sql-config
ayushdg d11f508
Update case sensitivity test
ayushdg b8fcbc0
Update setup to include the config yaml file for dask-sql
ayushdg edb2f17
Merge branch 'main' of github.com:dask-contrib/dask-sql into enh-dask…
ayushdg 42b1e34
Merge remote-tracking branch 'upstream/main' into enh-dask-sql-config
charlesbluca f05bb3c
Add sql schema yaml and update setup to include the schema
ayushdg 0f2eb02
Remove explicit config dict from dask_sql.config
ayushdg a370dcd
Update set_config docstring and prevent setting non sql configs
ayushdg 791e6d4
Remove configContainer in favor of dask-sql config module
ayushdg fed3d9b
Add config unit tests
ayushdg ae91f7f
Add dask sql configuration docs and include dask-sphinx-theme ext for…
ayushdg 9f2fed3
Merge branch 'enh-dask-sql-config' of github.com:ayushdg/dask-sql int…
ayushdg da0a8d4
Fix dask-sphinx-theme version constraint for config extention
ayushdg e5bb08b
Update set_config docstring
ayushdg f68bdcf
Rerun tests
ayushdg 0322f62
Merge remote-tracking branch 'upstream/main' into enh-dask-sql-config
charlesbluca c980c3e
Remove context.set_config api in favor of directly using dask
ayushdg 58eada8
Merge branch 'enh-dask-sql-config' of github.com:ayushdg/dask-sql int…
ayushdg File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,2 +1,4 @@ | ||
| recursive-include dask_sql *.yaml | ||
|
|
||
| include versioneer.py | ||
| include dask_sql/_version.py |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,4 @@ | ||
| from . import config | ||
| from ._version import get_versions | ||
| from .cmd import cmd_loop | ||
| from .context import Context | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,12 @@ | ||
| import os | ||
|
|
||
| import dask | ||
| import yaml | ||
|
|
||
| fn = os.path.join(os.path.dirname(__file__), "sql.yaml") | ||
|
|
||
| with open(fn) as f: | ||
| defaults = yaml.safe_load(f) | ||
|
|
||
| dask.config.update_defaults(defaults) | ||
| dask.config.ensure_file(source=fn, comment=True) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,28 @@ | ||
| properties: | ||
|
|
||
| sql: | ||
| type: object | ||
| properties: | ||
|
|
||
| groupby: | ||
| type: object | ||
| properties: | ||
|
|
||
| split_out: | ||
| type: integer | ||
| description: | | ||
| Number of output partitions for a groupby operation | ||
|
|
||
| split_every: | ||
| type: [integer, "null"] | ||
| description: | | ||
| Number of branches per reduction step for a groupby operation. | ||
|
|
||
| identifier: | ||
| type: object | ||
| properties: | ||
|
|
||
| case_sensitive: | ||
| type: boolean | ||
| description: | | ||
| Whether sql identifiers are considered case sensitive while parsing. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| sql: | ||
| groupby: | ||
| split_out: 1 | ||
| split_every: null | ||
|
|
||
| identifier: | ||
| case_sensitive: True |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.