You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hive.apache.org by "Denys Kuzmenko (Jira)" <ji...@apache.org> on 2025/01/21 09:57:00 UTC
[jira] [Resolved] (HIVE-28586) Support write order for Iceberg tables at CREATE TABLE
[ https://issues.apache.org/jira/browse/HIVE-28586?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Denys Kuzmenko resolved HIVE-28586.
-----------------------------------
Fix Version/s: 4.1.0
Resolution: Fixed
> Support write order for Iceberg tables at CREATE TABLE
> ------------------------------------------------------
>
> Key: HIVE-28586
> URL: https://issues.apache.org/jira/browse/HIVE-28586
> Project: Hive
> Issue Type: Improvement
> Components: Hive
> Reporter: Zoltán Rátkai
> Assignee: Zoltán Rátkai
> Priority: Major
> Labels: pull-request-available
> Fix For: 4.1.0
>
>
> h3. Add support for:
> Iceberg tables can be configured with a sort order that is used to automatically sort data that is written to the table in some engines. For example, {{MERGE INTO}} in Spark will use the table ordering.
> To set the write order for a table, use {{{}WRITE ORDERED BY{}}}:
>
> CREATE TABLE prod.db.sample WRITE ORDERED BY category, id
> -- use optional ASC/DEC keyword to specify sort order of each field (default ASC)}}
> CREATE TABLE prod.db.sample WRITE ORDERED BY category ASC, id
> -- use optional NULLS FIRST/NULLS LAST keyword to specify null order of each field (default FIRST)}}
> CREATE TABLE prod.db.sample WRITE ORDERED BY category ASC NULLS LAST, id DESC NULLS FIRST
> Align the syntax based on compatibility.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)