Skip to content

Commit c8a888e

Browse files
authored
Merge pull request #40 from stackql/feature/updates
added dataflow dependency args
2 parents fe26127 + 01466d2 commit c8a888e

File tree

6 files changed

+41
-7
lines changed

6 files changed

+41
-7
lines changed

CHANGELOG.md

+12
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,17 @@
11
# Changelog
22

3+
## v3.6.4 (2024-07-17)
4+
5+
### Updates
6+
7+
* added dataflow dependency arguments
8+
9+
## v3.6.3 (2024-06-22)
10+
11+
### Updates
12+
13+
* build updates
14+
315
## v3.6.2 (2024-05-06)
416

517
### Updates

README.rst

+4-2
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,8 @@ Then, from the root directory of the repository, run:
149149

150150
::
151151

152-
python3 setup.py sdist
152+
rm -rf dist/*
153+
python3 setup.py sdist bdist_wheel
153154

154155
The package will be built in the ``dist`` directory.
155156

@@ -194,4 +195,5 @@ To publish the package to PyPI, run the following command:
194195

195196
::
196197

197-
twine upload --config-file .pypirc dist/pystackql-3.6.2.tar.gz
198+
twine upload --config-file .pypirc dist/*
199+

docs/source/conf.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
# The short X.Y version
2727
version = ''
2828
# The full version, including alpha/beta/rc tags
29-
release = '3.6.2'
29+
release = '3.6.4'
3030

3131

3232
# -- General configuration ---------------------------------------------------

pyproject.toml

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[build-system]
2+
requires = ["setuptools>=42", "wheel"]
3+
build-backend = "setuptools.build_meta"

pystackql/stackql.py

+20-3
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,14 @@ class StackQL:
4848
(defaults to `{cwd}/.stackql`)
4949
:type app_root: str, optional
5050
:param execution_concurrency_limit: Concurrency limit for query execution
51-
(defaults to `1`, set to `-1` for unlimited)
52-
:type execution_concurrency_limit: int, optional
51+
(defaults to `-1` - unlimited)
52+
:type execution_concurrency_limit: int, optional
53+
:param dataflow_dependency_max: Max dataflow weakly connected components for a given query
54+
(defaults to `50`)
55+
:type dataflow_dependency_max: int, optional
56+
:param dataflow_components_max: Max dataflow dependency depth for a given query
57+
(defaults to `50`)
58+
:type dataflow_components_max: int, optional
5359
:param api_timeout: API timeout
5460
(defaults to `45`, not supported in `server_mode`)
5561
:type api_timeout: int, optional
@@ -238,7 +244,9 @@ def __init__(self,
238244
backend_file_storage_location='stackql.db',
239245
download_dir=None,
240246
app_root=None,
241-
execution_concurrency_limit=1,
247+
execution_concurrency_limit=-1,
248+
dataflow_dependency_max=50,
249+
dataflow_components_max=50,
242250
output='dict',
243251
custom_registry=None,
244252
custom_auth=None,
@@ -350,6 +358,15 @@ def __init__(self,
350358
self.params.append("--execution.concurrency.limit")
351359
self.params.append(str(execution_concurrency_limit))
352360

361+
# set dataflow_dependency_max and dataflow_components_max
362+
self.dataflow_dependency_max = dataflow_dependency_max
363+
self.params.append("--dataflow.dependency.max")
364+
self.params.append(str(dataflow_dependency_max))
365+
366+
self.dataflow_components_max = dataflow_components_max
367+
self.params.append("--dataflow.components.max")
368+
self.params.append(str(dataflow_components_max))
369+
353370
# if custom_auth is set, use it
354371
if custom_auth is not None:
355372
authobj, authstr = _format_auth(custom_auth)

setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
setup(
1212
name='pystackql',
13-
version='3.6.2',
13+
version='3.6.4',
1414
description='A Python interface for StackQL',
1515
long_description=readme,
1616
author='Jeffrey Aven',

0 commit comments

Comments
 (0)