Skip to content

BTEQ operator for dagster-teradata#4

Merged
MT255026 merged 22 commits intorelease_branch_0.0.4from
MT255026_IDE-25007
Jun 30, 2025
Merged

BTEQ operator for dagster-teradata#4
MT255026 merged 22 commits intorelease_branch_0.0.4from
MT255026_IDE-25007

Conversation

@MT255026
Copy link
Collaborator

Support for BTEQ on dagster-teradata:

BTEQ Operator

The bteq_operator method enables execution of Teradata BTEQ commands either locally or on a remote machine via SSH. It supports direct SQL input or file-based scripts, custom encoding, timeout controls, and both password and SSH key authentication for remote execution.

Key Features

  • Local or remote BTEQ execution
  • Accepts SQL string or file path (mutually exclusive)
  • Supports custom script/session encoding
  • Timeout and return code handling
  • Remote authentication via password or SSH key

Parameters

  • sql: SQL commands to execute directly (optional, mutually exclusive with file_path)
  • file_path: Path to SQL script file (optional, mutually exclusive with sql)
  • remote_host: Hostname/IP for remote execution (optional)
  • remote_user: Username for remote authentication (required if remote_host is set)
  • remote_password: Password for remote authentication (alternative to ssh_key_path)
  • ssh_key_path: Path to SSH private key (alternative to remote_password)
  • remote_port: SSH port (default: 22)
  • remote_working_dir: Working directory on remote machine (default: /tmp)
  • bteq_script_encoding: Encoding for BTEQ script file (default: utf-8)
  • bteq_session_encoding: Encoding for BTEQ session (default: ASCII)
  • bteq_quit_rc: Acceptable return code(s) for BTEQ execution (default: 0)
  • timeout: Maximum execution time in seconds (default: 600)
  • timeout_rc: Return code for timeout cases (optional)

@MT255026 MT255026 requested a review from sc250072 June 26, 2025 05:37
@MT255026 MT255026 changed the base branch from main to release_branch_0.0.4 June 26, 2025 05:53
Copy link
Collaborator

@sc250072 sc250072 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Couple of minor review comments needs to be addressed.

@MT255026 MT255026 requested a review from sc250072 June 30, 2025 05:32
Copy link
Collaborator

@sc250072 sc250072 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me.

@MT255026 MT255026 merged commit ac5dbac into release_branch_0.0.4 Jun 30, 2025
1 check passed
@MT255026 MT255026 deleted the MT255026_IDE-25007 branch February 6, 2026 11:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants