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 data ingestion helper that leverages the Sqoop integration to import a relational table into HDFS while exposing toggles for direct connectors, JDBC driver overrides, and passthrough options. The helper should favor concise configuration while ensuring each toggle is honored in the executed import.
@generates
from typing import Mapping
def run_direct_table_import(
connection_uri: str,
table: str,
target_dir: str,
*,
use_direct: bool = False,
jdbc_driver: str | None = None,
extra_options: Mapping[str, str] | None = None,
) -> None:
"""
Launches a Sqoop table import into the given target directory using the package's Sqoop facilities.
- Enables or disables the direct connector based on use_direct.
- Overrides the JDBC driver when jdbc_driver is provided.
- Forwards extra Sqoop CLI options exactly as supplied.
"""Provides Sqoop import and execution utilities integrated with Airflow connections.