We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Describe the bug When we use the load_file operator and pass a local file and the file doesn't exist, the operator does nothing and fails silently.
Version
To Reproduce Steps to reproduce the behavior:
aql.load_file( # noqa: F841 input_file=File( path='/tmp/non_existing_file.csv', ), task_id="load_csv", output_table=table_metadata, chunk_size=chunk_size, )
Expected behavior Case 1 (default)
The operator should fail with an error if param if_file_doesnt_exist is set to exception saying that the file doesn't exist.
if_file_doesnt_exist
exception
Case 2
if the if_file_doesnt_exist is set to suppress the operator should not raise an exception.
suppress
To accommodate this behaviour added a parameter if_file_doesnt_exist to load_file() operator and get_file() function.
load_file()
get_file()
The text was updated successfully, but these errors were encountered:
@utkarsharma2 this can be closed, right?
can you comment which PR closed it plz
Sorry, something went wrong.
closed by #476
utkarsharma2
No branches or pull requests
Describe the bug
When we use the load_file operator and pass a local file and the file doesn't exist, the operator does nothing and fails silently.
Version
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Case 1 (default)
Case 2
To accommodate this behaviour added a parameter
if_file_doesnt_exist
toload_file()
operator andget_file()
function.The text was updated successfully, but these errors were encountered: