-
Notifications
You must be signed in to change notification settings - Fork 0
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
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this 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() |
There was a problem hiding this comment.
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> |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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, |
There was a problem hiding this comment.
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)); |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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> |
There was a problem hiding this comment.
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( |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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) |
There was a problem hiding this comment.
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 ?
e86685b
to
c988546
Compare
Rebase and resolve conflicts Use cached thread pool for split generation
c988546
to
e440e49
Compare
Class view in RFC.