airflow.providers.teradata.utils.bteq_util¶
Functions¶
Verify if BTEQ is installed and available in the system's PATH. |
|
|
Verify if BTEQ is installed on the remote machine. |
|
|
|
Build a BTEQ script with necessary connection and session commands. |
Build a BTEQ script with necessary connection and session commands. |
|
|
Prepare the BTEQ command with necessary parameters. |
|
Prepare the BTEQ command with necessary parameters. |
|
|
|
Check if the file can be read with the specified encoding. |
|
Read the content of a file with the specified encoding. |
|
Check if the given remote file path is a valid BTEQ script file. |
Module Contents¶
- airflow.providers.teradata.utils.bteq_util.verify_bteq_installed()[source]¶
Verify if BTEQ is installed and available in the system’s PATH.
- airflow.providers.teradata.utils.bteq_util.verify_bteq_installed_remote(ssh_client)[source]¶
Verify if BTEQ is installed on the remote machine.
- airflow.providers.teradata.utils.bteq_util.transfer_file_sftp(ssh_client, local_path, remote_path)[source]¶
- airflow.providers.teradata.utils.bteq_util.prepare_bteq_script_for_remote_execution(conn, sql)[source]¶
Build a BTEQ script with necessary connection and session commands.
- airflow.providers.teradata.utils.bteq_util.prepare_bteq_script_for_local_execution(sql)[source]¶
Build a BTEQ script with necessary connection and session commands.
- airflow.providers.teradata.utils.bteq_util.prepare_bteq_command_for_remote_execution(timeout, bteq_script_encoding, bteq_session_encoding, timeout_rc)[source]¶
Prepare the BTEQ command with necessary parameters.
- airflow.providers.teradata.utils.bteq_util.prepare_bteq_command_for_local_execution(conn, timeout, bteq_script_encoding, bteq_session_encoding, timeout_rc)[source]¶
Prepare the BTEQ command with necessary parameters.
- airflow.providers.teradata.utils.bteq_util.is_valid_encoding(file_path, encoding='UTF-8')[source]¶
Check if the file can be read with the specified encoding.