Skip to content

Prepare bteq command with subprocess arg list instead of string#61624

Merged
amoghrajesh merged 2 commits intoapache:mainfrom
amoghrajesh:bteq-fix
Feb 8, 2026
Merged

Prepare bteq command with subprocess arg list instead of string#61624
amoghrajesh merged 2 commits intoapache:mainfrom
amoghrajesh:bteq-fix

Conversation

@amoghrajesh
Copy link
Contributor


Was generative AI tooling used to co-author this PR?
  • No

Fixing the subprocess execution for bteq command execution to use arg list intead of shell interpreted strings and using
shell=False, to harden the bteq execution from badly configured connection fields.


  • Read the Pull Request Guidelines for more information. Note: commit author/co-author name and email in commits become permanently public when merged.
  • For fundamental code changes, an Airflow Improvement Proposal (AIP) is needed.
  • When adding dependency, check compliance with the ASF 3rd Party License Policy.
  • For significant user-facing changes create newsfragment: {pr_number}.significant.rst or {issue_number}.significant.rst, in airflow-core/newsfragments.

@potiuk
Copy link
Member

potiuk commented Feb 8, 2026

Looks good - some tests need to be fixed though

@amoghrajesh
Copy link
Contributor Author

Yep, just pushed a fix

@amoghrajesh amoghrajesh merged commit 5f29082 into apache:main Feb 8, 2026
90 checks passed
jhgoebbert pushed a commit to jhgoebbert/airflow_Owen-CH-Leung that referenced this pull request Feb 8, 2026
…he#61624)

* Prepare bteq command with subprocess arg list instead of string

* fixing ci
Ratasa143 pushed a commit to Ratasa143/airflow that referenced this pull request Feb 15, 2026
…he#61624)

* Prepare bteq command with subprocess arg list instead of string

* fixing ci
choo121600 pushed a commit to choo121600/airflow that referenced this pull request Feb 22, 2026
…he#61624)

* Prepare bteq command with subprocess arg list instead of string

* fixing ci
AkshayArali pushed a commit to AkshayArali/airflow_630 that referenced this pull request Feb 27, 2026
…he#61624)

* Prepare bteq command with subprocess arg list instead of string

* fixing ci
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants