tessl install tessl/pypi-apache-airflow-backport-providers-apache-sqoop@2021.3.0Apache Airflow backport provider package for Apache Sqoop integration, providing SqoopHook and SqoopOperator for data import/export between relational databases and Hadoop
Agent Success
Agent success rate when using this tile
92%
Improvement
Agent success rate improvement when using this tile compared to baseline
1.39x
Baseline
Agent success rate without this tile
66%
Design a small utility that assembles and executes Sqoop CLI commands while keeping credentials hidden in logs and failing fast when the Sqoop process reports an error.
@generates
from typing import Any, Dict, List, Tuple
def prepare_command(conn_id: str, base_args: List[str], extra_options: Dict[str, Any] | None = None) -> Tuple[List[str], str]:
"""Builds the full Sqoop CLI argument list from the connection plus base arguments and optional extras, returning both the raw args and a masked command string for logging."""
def run_command(command: List[str]) -> str:
"""Executes the Sqoop command using the package's subprocess helper, returning stdout on success and raising the package's standard exception type on any non-zero exit."""Provides Sqoop connection hooks, credential masking, and subprocess execution with fail-fast behavior.