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
36 changes: 35 additions & 1 deletion plugin/trino-hudi/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@

<properties>
<air.main.basedir>${project.parent.basedir}</air.main.basedir>
<dep.hudi.version>0.12.3</dep.hudi.version>
<dep.hudi.version>0.14.0</dep.hudi.version>
<dep.hbase.version>2.4.9</dep.hbase.version>
</properties>

<dependencies>
Expand Down Expand Up @@ -188,6 +189,13 @@
<scope>runtime</scope>
</dependency>

<dependency>
<groupId>com.esotericsoftware</groupId>
<artifactId>kryo-shaded</artifactId>
<version>4.0.2</version>
<scope>test</scope>
</dependency>

<dependency>
<groupId>io.airlift</groupId>
<artifactId>junit-extensions</artifactId>
Expand Down Expand Up @@ -275,6 +283,32 @@
<scope>test</scope>
</dependency>

<dependency>
<groupId>org.apache.hbase</groupId>
<artifactId>hbase-client</artifactId>
<version>${dep.hbase.version}</version>
<scope>test</scope>
<exclusions>
<exclusion>
<groupId>*</groupId>
<artifactId>*</artifactId>
</exclusion>
</exclusions>
</dependency>

<dependency>
<groupId>org.apache.hbase</groupId>
<artifactId>hbase-server</artifactId>
<version>${dep.hbase.version}</version>
<scope>test</scope>
<exclusions>
<exclusion>
<groupId>*</groupId>
<artifactId>*</artifactId>
</exclusion>
</exclusions>
</dependency>

<dependency>
<groupId>org.apache.hudi</groupId>
<artifactId>hudi-client-common</artifactId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@
import org.apache.hudi.client.HoodieJavaWriteClient;
import org.apache.hudi.client.common.HoodieJavaEngineContext;
import org.apache.hudi.common.bootstrap.index.NoOpBootstrapIndex;
import org.apache.hudi.common.config.HoodieMetadataConfig;
import org.apache.hudi.common.model.HoodieAvroPayload;
import org.apache.hudi.common.model.HoodieAvroRecord;
import org.apache.hudi.common.model.HoodieKey;
Expand Down Expand Up @@ -222,6 +223,9 @@ private HoodieJavaWriteClient<HoodieAvroPayload> createWriteClient(TpchTable<?>
.withArchivalConfig(archivalConfig)
.withEmbeddedTimelineServerEnabled(false)
.withMarkersType(MarkerType.DIRECT.name())
// Disabling Hudi metadata table (MDT) in tests as the support of
// reading MDT is broken after removal of Hudi dependencies from compile time
.withMetadataConfig(HoodieMetadataConfig.newBuilder().enable(false).build())
.build();
return new HoodieJavaWriteClient<>(new HoodieJavaEngineContext(conf), cfg);
}
Expand Down Expand Up @@ -260,14 +264,7 @@ private static RecordConverter createRecordConverter(TpchTable<?> table)
// wrap to a HoodieRecord
HoodieKey key = new HoodieKey(uuid, PARTITION_PATH);
HoodieAvroPayload data = new HoodieAvroPayload(Option.of(record));
return new HoodieRecord<>(key, data)
{
@Override
public HoodieRecord<HoodieAvroPayload> newInstance()
{
return new HoodieAvroRecord<>(key, data, null);
}
};
return new HoodieAvroRecord<>(key, data, null);
};
}

Expand Down