arrow (version 0.16.0.2)

hive_partition: Construct Hive partitioning

Description

Hive partitioning embeds field names and values in path segments, such as "/year=2019/month=2/data.parquet".

Usage

hive_partition(...)

Arguments

...

named list of data types, passed to schema()

Value

A HivePartitioning, or a HivePartitioningFactory if calling hive_partition() with no arguments.

Details

Because fields are named in the path segments, order of fields passed to hive_partition() does not matter.

Examples

Run this code
# NOT RUN {
hive_partition(year = int16(), month = int8())
# }

Run the code above in your browser using DataLab