This is an automated email from the ASF dual-hosted git repository.

amoghdesai pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/airflow.git


The following commit(s) were added to refs/heads/main by this push:
     new 641ad7382f1 Migrate apache/hive connection UI metadata to YAML (#62380)
641ad7382f1 is described below

commit 641ad7382f1fdf3f3182bdd89190a02cb03b2b96
Author: Anish Giri <[email protected]>
AuthorDate: Thu Feb 26 03:43:22 2026 -0600

    Migrate apache/hive connection UI metadata to YAML (#62380)
---
 providers/apache/hive/provider.yaml                | 33 ++++++++++++++++++++++
 .../providers/apache/hive/get_provider_info.py     | 19 +++++++++++++
 2 files changed, 52 insertions(+)

diff --git a/providers/apache/hive/provider.yaml 
b/providers/apache/hive/provider.yaml
index 4ff07ab1062..897b5310d94 100644
--- a/providers/apache/hive/provider.yaml
+++ b/providers/apache/hive/provider.yaml
@@ -142,6 +142,39 @@ transfers:
 connection-types:
   - hook-class-name: airflow.providers.apache.hive.hooks.hive.HiveCliHook
     connection-type: hive_cli
+    ui-field-behaviour:
+      hidden-fields:
+        - extra
+      relabeling: {}
+    conn-fields:
+      use_beeline:
+        label: Use Beeline
+        schema:
+          type:
+            - boolean
+            - 'null'
+          default: true
+      proxy_user:
+        label: Proxy User
+        schema:
+          type:
+            - string
+            - 'null'
+          default: ''
+      principal:
+        label: Principal
+        schema:
+          type:
+            - string
+            - 'null'
+          default: 'hive/[email protected]'
+      high_availability:
+        label: High Availability mode
+        schema:
+          type:
+            - boolean
+            - 'null'
+          default: false
   - hook-class-name: airflow.providers.apache.hive.hooks.hive.HiveServer2Hook
     connection-type: hiveserver2
   - hook-class-name: airflow.providers.apache.hive.hooks.hive.HiveMetastoreHook
diff --git 
a/providers/apache/hive/src/airflow/providers/apache/hive/get_provider_info.py 
b/providers/apache/hive/src/airflow/providers/apache/hive/get_provider_info.py
index a4f71ee6c17..9929536d96f 100644
--- 
a/providers/apache/hive/src/airflow/providers/apache/hive/get_provider_info.py
+++ 
b/providers/apache/hive/src/airflow/providers/apache/hive/get_provider_info.py
@@ -96,6 +96,25 @@ def get_provider_info():
             {
                 "hook-class-name": 
"airflow.providers.apache.hive.hooks.hive.HiveCliHook",
                 "connection-type": "hive_cli",
+                "ui-field-behaviour": {"hidden-fields": ["extra"], 
"relabeling": {}},
+                "conn-fields": {
+                    "use_beeline": {
+                        "label": "Use Beeline",
+                        "schema": {"type": ["boolean", "null"], "default": 
True},
+                    },
+                    "proxy_user": {
+                        "label": "Proxy User",
+                        "schema": {"type": ["string", "null"], "default": ""},
+                    },
+                    "principal": {
+                        "label": "Principal",
+                        "schema": {"type": ["string", "null"], "default": 
"hive/[email protected]"},
+                    },
+                    "high_availability": {
+                        "label": "High Availability mode",
+                        "schema": {"type": ["boolean", "null"], "default": 
False},
+                    },
+                },
             },
             {
                 "hook-class-name": 
"airflow.providers.apache.hive.hooks.hive.HiveServer2Hook",

Reply via email to