Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hudi connector #7

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Hudi connector #7

wants to merge 1 commit into from

Conversation

codope
Copy link
Owner

@codope codope commented Dec 27, 2021

Class view in RFC.

Copy link

@vinothchandar vinothchandar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The fast path and the core logic looks good to me. want to do an interactive session to go over any simplifications, understand some threading model/design better. Great job!

projection.get().stream()
.map(HiveColumnHandle.class::cast)
.collect(toUnmodifiableList()))
projection.get().stream()

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

revert this and get rid of the whitespace changes?

</dependency>
<dependency>
<groupId>org.apache.hudi</groupId>
<artifactId>hudi-hive-sync</artifactId>

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We need hudi-hive-sync? for querying?

import io.trino.spi.connector.ConnectorFactory;

public class HudiPlugin
implements Plugin

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this wrapping. bit odd to me. but seems like the convention.

private HudiPageSourceBuilderFactory() {}

public static HudiPageSourceBuilder get(
HoodieFileFormat hudiFileFormat, HudiConfig hudiConfig, HdfsEnvironment hdfsEnvironment,

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

rename hudiBaseFileFormat and lets use this terminology consistently everywhere? including HudiConfig

hudiConfig, hdfsEnvironment, stats, timeZone, context);
default:
throw new HoodieIOException(
String.format("File format %s is not supported yet", hudiFileFormat));

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Base file format ...

import static io.trino.plugin.hudi.HudiSessionProperties.getStandardSplitWeightSize;
import static io.trino.plugin.hudi.HudiSessionProperties.isSizeBasedSplitWeightsEnabled;

public class HudiSplitBackgroundLoader

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

how much of this class is code reused from HiveSplitBackgroundLoader

</dependency>
<dependency>
<groupId>org.apache.hudi</groupId>
<artifactId>hudi-common</artifactId>

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can we do the same trimming around hbase/parquet-avro - we did for Presto, here as well?

private final ScheduledExecutorService splitLoaderExecutorService;
private final ScheduledFuture splitLoaderFuture;

public HudiSplitSource(

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

whats the life cycle of this object? Once per query?

import static com.google.common.base.Preconditions.checkArgument;
import static java.util.Objects.requireNonNull;

public class HudiSplit

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Modelled after an existing HiveSplit?

ConnectorSplit connectorSplit,
ConnectorTableHandle connectorTable,
List<ColumnHandle> columns,
DynamicFilter dynamicFilter)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you point me to where the file pruning happens i.e filtering out files that don't match the filter ?

Rebase and resolve conflicts

Use cached thread pool for split generation
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants