This is an automated email from the ASF dual-hosted git repository.
ayushsaxena pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/hive.git
The following commit(s) were added to refs/heads/master by this push:
new 23962f21194 HIVE-29222: Fix Compilation failure when running with
thrift profile by adding VARIANT_TYPE_NAME in serde.thrift (#6096)
23962f21194 is described below
commit 23962f211941c17bd44d858e210c88087b9e3c4b
Author: Vikram Ahuja <[email protected]>
AuthorDate: Sat Sep 27 22:19:05 2025 +0530
HIVE-29222: Fix Compilation failure when running with thrift profile by
adding VARIANT_TYPE_NAME in serde.thrift (#6096)
---
serde/if/serde.thrift | 1 +
serde/src/gen/thrift/gen-cpp/serde_constants.cpp | 2 ++
serde/src/gen/thrift/gen-cpp/serde_constants.h | 1 +
.../gen/thrift/gen-php/org/apache/hadoop/hive/serde/Constant.php | 6 ++++++
.../src/gen/thrift/gen-py/org_apache_hadoop_hive_serde/constants.py | 1 +
serde/src/gen/thrift/gen-rb/serde_constants.rb | 2 ++
6 files changed, 13 insertions(+)
diff --git a/serde/if/serde.thrift b/serde/if/serde.thrift
index 04a593c9721..f8d0f0a06ac 100644
--- a/serde/if/serde.thrift
+++ b/serde/if/serde.thrift
@@ -70,6 +70,7 @@ const string LIST_TYPE_NAME = "array";
const string MAP_TYPE_NAME = "map";
const string STRUCT_TYPE_NAME = "struct";
const string UNION_TYPE_NAME = "uniontype";
+const string VARIANT_TYPE_NAME = "variant";
const string LIST_COLUMNS = "columns";
const string LIST_COLUMN_TYPES = "columns.types";
diff --git a/serde/src/gen/thrift/gen-cpp/serde_constants.cpp
b/serde/src/gen/thrift/gen-cpp/serde_constants.cpp
index f413f648638..b4fde1dd8c7 100644
--- a/serde/src/gen/thrift/gen-cpp/serde_constants.cpp
+++ b/serde/src/gen/thrift/gen-cpp/serde_constants.cpp
@@ -95,6 +95,8 @@ serdeConstants::serdeConstants() {
UNION_TYPE_NAME = "uniontype";
+ VARIANT_TYPE_NAME = "variant";
+
LIST_COLUMNS = "columns";
LIST_COLUMN_TYPES = "columns.types";
diff --git a/serde/src/gen/thrift/gen-cpp/serde_constants.h
b/serde/src/gen/thrift/gen-cpp/serde_constants.h
index 4a5f9ef3815..94a8d599fda 100644
--- a/serde/src/gen/thrift/gen-cpp/serde_constants.h
+++ b/serde/src/gen/thrift/gen-cpp/serde_constants.h
@@ -57,6 +57,7 @@ class serdeConstants {
std::string MAP_TYPE_NAME;
std::string STRUCT_TYPE_NAME;
std::string UNION_TYPE_NAME;
+ std::string VARIANT_TYPE_NAME;
std::string LIST_COLUMNS;
std::string LIST_COLUMN_TYPES;
std::string LIST_PARTITION_COLUMNS;
diff --git
a/serde/src/gen/thrift/gen-php/org/apache/hadoop/hive/serde/Constant.php
b/serde/src/gen/thrift/gen-php/org/apache/hadoop/hive/serde/Constant.php
index 7588165109c..957e06fba6a 100644
--- a/serde/src/gen/thrift/gen-php/org/apache/hadoop/hive/serde/Constant.php
+++ b/serde/src/gen/thrift/gen-php/org/apache/hadoop/hive/serde/Constant.php
@@ -60,6 +60,7 @@ final class Constant extends \Thrift\Type\TConstant
static protected $MAP_TYPE_NAME;
static protected $STRUCT_TYPE_NAME;
static protected $UNION_TYPE_NAME;
+ static protected $VARIANT_TYPE_NAME;
static protected $LIST_COLUMNS;
static protected $LIST_COLUMN_TYPES;
static protected $LIST_PARTITION_COLUMNS;
@@ -282,6 +283,11 @@ final class Constant extends \Thrift\Type\TConstant
return "uniontype";
}
+ protected static function init_VARIANT_TYPE_NAME()
+ {
+ return "variant";
+ }
+
protected static function init_LIST_COLUMNS()
{
return "columns";
diff --git
a/serde/src/gen/thrift/gen-py/org_apache_hadoop_hive_serde/constants.py
b/serde/src/gen/thrift/gen-py/org_apache_hadoop_hive_serde/constants.py
index f5c6a272cfe..b5a721e3d3a 100644
--- a/serde/src/gen/thrift/gen-py/org_apache_hadoop_hive_serde/constants.py
+++ b/serde/src/gen/thrift/gen-py/org_apache_hadoop_hive_serde/constants.py
@@ -54,6 +54,7 @@
MAP_TYPE_NAME = "map"
STRUCT_TYPE_NAME = "struct"
UNION_TYPE_NAME = "uniontype"
+VARIANT_TYPE_NAME = "variant"
LIST_COLUMNS = "columns"
LIST_COLUMN_TYPES = "columns.types"
LIST_PARTITION_COLUMNS = "partition.columns"
diff --git a/serde/src/gen/thrift/gen-rb/serde_constants.rb
b/serde/src/gen/thrift/gen-rb/serde_constants.rb
index 6a196057990..d4a61ac413a 100644
--- a/serde/src/gen/thrift/gen-rb/serde_constants.rb
+++ b/serde/src/gen/thrift/gen-rb/serde_constants.rb
@@ -91,6 +91,8 @@ STRUCT_TYPE_NAME = %q"struct"
UNION_TYPE_NAME = %q"uniontype"
+VARIANT_TYPE_NAME = %q"variant"
+
LIST_COLUMNS = %q"columns"
LIST_COLUMN_TYPES = %q"columns.types"