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

Support engine_version parameter for query API #81

Merged
merged 1 commit into from Mar 31, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
3 changes: 3 additions & 0 deletions pytd/client.py
Expand Up @@ -201,6 +201,9 @@ def query(self, query, engine=None, **kwargs):
- ``retry_limit`` (int): max number of automatic retries
- ``wait_interval`` (int): sleep interval until job finish
- ``wait_callback`` (function): called every interval against job itself
- ``engine_version`` (str): run query with Hive 2 if this parameter
is set to ``"experimental"`` and ``engine`` denotes Hive.
https://support.treasuredata.com/hc/en-us/articles/360027259074-How-to-use-Hive-2

Returns
-------
Expand Down
3 changes: 3 additions & 0 deletions pytd/pandas_td/__init__.py
Expand Up @@ -167,6 +167,9 @@ def read_td_query(
- ``retry_limit`` (int): max number of automatic retries
- ``wait_interval`` (int): sleep interval until job finish
- ``wait_callback`` (function): called every interval against job itself
- ``engine_version`` (str): run query with Hive 2 if this parameter is
set to ``"experimental"`` in ``HiveQueryEngine``.
https://support.treasuredata.com/hc/en-us/articles/360027259074-How-to-use-Hive-2

Returns
-------
Expand Down
10 changes: 10 additions & 0 deletions pytd/query_engine.py
Expand Up @@ -73,6 +73,9 @@ def execute(self, query, **kwargs):
- ``retry_limit`` (int): max number of automatic retries
- ``wait_interval`` (int): sleep interval until job finish
- ``wait_callback`` (function): called every interval against job itself
- ``engine_version`` (str): run query with Hive 2 if this parameter
is set to ``"experimental"`` in ``HiveQueryEngine``.
https://support.treasuredata.com/hc/en-us/articles/360027259074-How-to-use-Hive-2

Returns
-------
Expand Down Expand Up @@ -168,6 +171,9 @@ def _get_tdclient_cursor(self, con, **kwargs):
- ``retry_limit`` (int): max number of automatic retries
- ``wait_interval`` (int): sleep interval until job finish
- ``wait_callback`` (function): called every interval against job itself
- ``engine_version`` (str): run query with Hive 2 if this parameter
is set to ``"experimental"`` in ``HiveQueryEngine``.
https://support.treasuredata.com/hc/en-us/articles/360027259074-How-to-use-Hive-2

Returns
-------
Expand All @@ -181,6 +187,7 @@ def _get_tdclient_cursor(self, con, **kwargs):
"retry_limit",
"wait_interval",
"wait_callback",
"engine_version",
]
)

Expand Down Expand Up @@ -372,6 +379,9 @@ def cursor(self, **kwargs):
- ``retry_limit`` (int): max number of automatic retries
- ``wait_interval`` (int): sleep interval until job finish
- ``wait_callback`` (function): called every interval against job itself
- ``engine_version`` (str): run query with Hive 2 if this parameter
is set to ``"experimental"``.
https://support.treasuredata.com/hc/en-us/articles/360027259074-How-to-use-Hive-2

Returns
-------
Expand Down