[
https://issues.apache.org/jira/browse/HUDI-8665?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Y Ethan Guo updated HUDI-8665:
------------------------------
Parent: HUDI-9109 (was: HUDI-8722)
> Hudi configs cannot take effect during or after the table has been created
> --------------------------------------------------------------------------
>
> Key: HUDI-8665
> URL: https://issues.apache.org/jira/browse/HUDI-8665
> Project: Apache Hudi
> Issue Type: Sub-task
> Reporter: Lin Liu
> Assignee: Y Ethan Guo
> Priority: Critical
> Fix For: 1.0.2
>
>
> {code:java}
> The following `SET` statements cannot take effect when they are put before
> the createTable statements or put into the options clause of the createTable
> statement.
> # These set statements must be run before the create table statement.
> SET hoodie.metadata.enable =true;
> SET hoodie.metadata.index.column.stats.enable = true;
> SET hoodie.enable.data.skipping = true;
> CREATE DATABASE IF NOT EXISTS tpcds_hudi_1tb LOCATION
> 's3a://performance-benchmark-datasets-us-west-2/jenkins/benchmarks/read/tpcds_hudi_1tb';
> USE tpcds_hudi_1tb;
> CREATE TABLE tpcds_hudi_1tb.store_sales
> USING hudi
> OPTIONS (
> type = 'mor',
> primaryKey = 'ss_ticket_number',
> precombineField = 'ss_sold_date_sk',
> partitionPathComponentPrefixes = 'ss_sold_date_sk'
> )
> LOCATION
> 's3a://performance-benchmark-datasets-us-west-2/jenkins/benchmarks/read/tpcds_hudi_1tb/store_sales';
> # For partition pruning
> # Trigger partition pruning:
> select count(1) from tpcds_hudi_1tb.store_sales where ss_sold_date_sk =
> 2450816;
> # Without partition prunning:
> select count(1) from tpcds_hudi_1tb.store_sales;
> # For data skipping
> # Both the following queries will skip files.
> select count(1) from tpcds_hudi_1tb.store_sales where ss_customer_sk = 325;
> select count(1) from tpcds_hudi_1tb.store_sales where ss_customer_sk = 100;
> # To compare, we need to recreate the table, with
> `hoodie.enable.data.skipping` set to false.
> {code}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)