iceberg-cpp
Loading...
Searching...
No Matches
Classes | Namespaces | Functions
hive_schema.h File Reference

Render Iceberg schemas as Hive type strings. More...

#include <string>
#include <vector>
#include "iceberg/catalog/hive/iceberg_hive_export.h"
#include "iceberg/result.h"
#include "iceberg/type_fwd.h"

Go to the source code of this file.

Classes

struct  iceberg::hive::HiveColumn
 Column metadata passed to HMS. More...
 

Namespaces

namespace  iceberg
 Core Apache Iceberg C++ APIs.
 
namespace  iceberg::hive
 Hive catalog APIs.
 

Functions

ICEBERG_HIVE_EXPORT Result< std::string > iceberg::hive::TypeToHiveString (const Type &type)
 Render a Hive type string, including nested types. Follow Java: variant -> unknown, time/uuid -> string, fixed -> binary. Unsupported types return kNotImplemented. Zoned timestamps require Hive 3+.
 
ICEBERG_HIVE_EXPORT Result< std::vector< HiveColumn > > iceberg::hive::SchemaToHiveColumns (const Schema &schema)
 Convert top-level fields to HMS columns. Docs become comments. Field IDs and requiredness are not represented in HMS.
 

Detailed Description

Render Iceberg schemas as Hive type strings.