Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Nicola Coretti <[email protected]>
  • Loading branch information
ckunki and Nicoretti authored Oct 7, 2024
1 parent c164fc9 commit 934baee
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,7 @@ def upload_via_joblib(location: bfs.path.PathLike, object: Any):
joblib.dump(object, temp_file.name)
temp_file.flush()
temp_file.seek(0)
data = b''.join(temp_file)
# strangely location.write(temp_file) did not write any data to BFS
location.write(data)
location.write(temp_file.read())


def read_via_joblib(location: bfs.path.PathLike) -> Any:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ def deployed_scripts(pyexasol_connection, db_schema_name, language_alias) -> Non

@pytest.fixture(scope="module")
def database_with_slc(
# pyexasol_connection,
deployed_scripts,
db_schema_name,
bucketfs_connection_factory,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -211,10 +211,6 @@ def state_file_exists(iteration: int) -> bool:
current = 1
assert not state_file_exists(previous) and state_file_exists(current)

# prev_state_exists = _state_file_exists(0, query_handler_bfs_connection)
# current_state_exists = _state_file_exists(1, query_handler_bfs_connection)
# assert prev_state_exists == False and current_state_exists == True

exa = MockExaEnvironment(
metadata=MockMetaData(
script_code_wrapper_function=_udf_wrapper,
Expand Down

0 comments on commit 934baee

Please sign in to comment.