Skip to content

Exasol hook logging of rowcount #44022

Closed
@XtremeBaumer

Description

Apache Airflow Provider(s)

exasol

Versions of Apache Airflow Providers

apache-airflow-providers-exasol = "4.4.2"

Apache Airflow version

2.9.3

Operating System

Debian GNU/Linux 11 (bullseye)

Deployment

Virtualenv installation

Deployment details

No response

What happened

Whenever a query is ran using the ExasolHook, the affected rows should be logged. However it is currently only loggingthe python callable instead of actually calling the function.

What you think should happen instead

The actual rowcount should be logged

How to reproduce

Execute any query using ExasolHook

hook = ExasolHook()
hook.run("select 1")

Anything else

The issue happens everytime and is still prevalent in the most recent version. The line that needs change:

self.log.info("Rows affected: %s", exa_statement.rowcount)

Are you willing to submit PR?

  • Yes I am willing to submit a PR!

Code of Conduct

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions