Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions docker/demo/hive-batch1.commands
Original file line number Diff line number Diff line change
Expand Up @@ -21,16 +21,16 @@ select symbol, max(ts) from stock_ticks_cow group by symbol HAVING symbol = 'GOO
select symbol, max(ts) from stock_ticks_mor_ro group by symbol HAVING symbol = 'GOOG';
select symbol, max(ts) from stock_ticks_mor_rt group by symbol HAVING symbol = 'GOOG';

select symbol, ts, volume, open, close from stock_ticks_cow where symbol = 'GOOG';
select symbol, ts, volume, open, close from stock_ticks_mor_ro where symbol = 'GOOG';
select symbol, ts, volume, open, close from stock_ticks_mor_rt where symbol = 'GOOG';
select symbol, ts, volume, open, close from stock_ticks_cow where symbol = 'GOOG' order by ts;
select symbol, ts, volume, open, close from stock_ticks_mor_ro where symbol = 'GOOG' order by ts;
select symbol, ts, volume, open, close from stock_ticks_mor_rt where symbol = 'GOOG' order by ts;

select symbol, max(ts) from stock_ticks_cow_bs group by symbol HAVING symbol = 'GOOG';
select symbol, max(ts) from stock_ticks_mor_bs_ro group by symbol HAVING symbol = 'GOOG';
select symbol, max(ts) from stock_ticks_mor_bs_rt group by symbol HAVING symbol = 'GOOG';

select symbol, ts, volume, open, close from stock_ticks_cow_bs where symbol = 'GOOG';
select symbol, ts, volume, open, close from stock_ticks_mor_bs_ro where symbol = 'GOOG';
select symbol, ts, volume, open, close from stock_ticks_mor_bs_rt where symbol = 'GOOG';
select symbol, ts, volume, open, close from stock_ticks_cow_bs where symbol = 'GOOG' order by ts;
select symbol, ts, volume, open, close from stock_ticks_mor_bs_ro where symbol = 'GOOG' order by ts;
select symbol, ts, volume, open, close from stock_ticks_mor_bs_rt where symbol = 'GOOG' order by ts;

!quit
8 changes: 4 additions & 4 deletions docker/demo/hive-batch2-after-compaction.commands
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,13 @@ add jar ${hudi.hadoop.bundle};
select symbol, max(ts) from stock_ticks_mor_ro group by symbol HAVING symbol = 'GOOG';
select symbol, max(ts) from stock_ticks_mor_rt group by symbol HAVING symbol = 'GOOG';

select symbol, ts, volume, open, close from stock_ticks_mor_ro where symbol = 'GOOG';
select symbol, ts, volume, open, close from stock_ticks_mor_rt where symbol = 'GOOG';
select symbol, ts, volume, open, close from stock_ticks_mor_ro where symbol = 'GOOG' order by ts;
select symbol, ts, volume, open, close from stock_ticks_mor_rt where symbol = 'GOOG' order by ts;

select symbol, max(ts) from stock_ticks_mor_bs_ro group by symbol HAVING symbol = 'GOOG';
select symbol, max(ts) from stock_ticks_mor_bs_rt group by symbol HAVING symbol = 'GOOG';

select symbol, ts, volume, open, close from stock_ticks_mor_bs_ro where symbol = 'GOOG';
select symbol, ts, volume, open, close from stock_ticks_mor_bs_rt where symbol = 'GOOG';
select symbol, ts, volume, open, close from stock_ticks_mor_bs_ro where symbol = 'GOOG' order by ts;
select symbol, ts, volume, open, close from stock_ticks_mor_bs_rt where symbol = 'GOOG' order by ts;

!quit
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@

import org.apache.hudi.keygen.SimpleKeyGenerator;

import org.junit.jupiter.api.AfterEach;
import org.junit.jupiter.api.Disabled;
import org.junit.jupiter.api.Test;

Expand Down Expand Up @@ -89,6 +90,17 @@ public class ITTestHoodieDemo extends ITTestBase {
+ " --hoodie-conf hoodie.datasource.hive_sync.database=default "
+ " --hoodie-conf hoodie.datasource.hive_sync.table=%s";


@AfterEach
public void clean() throws Exception {
String hdfsCmd = "hdfs dfs -rm -R ";
List<String> tablePaths = CollectionUtils.createImmutableList(
COW_BASE_PATH, MOR_BASE_PATH, COW_BOOTSTRAPPED_BASE_PATH, MOR_BOOTSTRAPPED_BASE_PATH);
for (String tablePath : tablePaths) {
executeCommandStringInDocker(ADHOC_1_CONTAINER, hdfsCmd + tablePath, true);
}
}

@Test
public void testParquetDemo() throws Exception {
baseFileFormat = HoodieFileFormat.PARQUET;
Expand Down