airflow-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kengo Seki <>
Subject Incompatible change in JdbcHook
Date Sat, 10 Mar 2018 12:51:25 GMT

I'm trying to use JdbcHook and noticed it requires to specify the
whole JDBC URL in the "host" column. An example that works is as

mysql> SELECT * FROM connection WHERE conn_id='jdbc_default'\G
*************************** 1. row ***************************
                id: 29
           conn_id: jdbc_default
         conn_type: jdbc
              host: jdbc:hive2://
            schema: NULL
             login: hive
          password: NULL
              port: NULL
      is_encrypted: 0
is_extra_encrypted: 0

But it's not intuitive and not consistent with other hooks. I think
users will expect the following manner:

           conn_id: jdbc_default
         conn_type: jdbc:hive2
            schema: default
             login: hive
          password: NULL
              port: 10000

So I'd like to fix JdbcHook as the latter, but I understand it brakes
backward compatibility.
Is this change acceptable? And if it's OK, what Airflow version should
I target (maybe 2.0)?

Kengo Seki <>

View raw message