-
Notifications
You must be signed in to change notification settings - Fork 299
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from lyft/single-hive-query-nodes
Single Hive query nodes
- Loading branch information
Showing
5 changed files
with
78 additions
and
28 deletions.
There are no files selected for viewing
This file contains 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,4 +1,4 @@ | ||
from __future__ import absolute_import | ||
import flytekit.plugins | ||
|
||
__version__ = '0.1.9' | ||
__version__ = '0.2.0' |
This file contains 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 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 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,20 @@ | ||
from __future__ import absolute_import | ||
|
||
import pytest | ||
|
||
from flytekit.models import qubole | ||
from tests.flytekit.common.parameterizers import LIST_OF_ALL_LITERAL_TYPES | ||
|
||
|
||
def test_hive_query(): | ||
q = qubole.HiveQuery(query='some query', timeout_sec=10, retry_count=0) | ||
q2 = qubole.HiveQuery.from_flyte_idl(q.to_flyte_idl()) | ||
assert q == q2 | ||
assert q2.query == 'some query' | ||
|
||
|
||
def test_hive_job(): | ||
query = qubole.HiveQuery(query='some query', timeout_sec=10, retry_count=0) | ||
obj = qubole.QuboleHiveJob(query=query, cluster_label='default', tags=[]) | ||
obj2 = qubole.QuboleHiveJob.from_flyte_idl(obj.to_flyte_idl()) | ||
assert obj == obj2 |
This file contains 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