JingsongLi commented on a change in pull request #13771:
URL: https://github.com/apache/flink/pull/13771#discussion_r512543855
##########
File path:
flink-connectors/flink-connector-hive/src/main/java/org/apache/flink/connectors/hive/HiveTableSource.java
##########
@@ -346,63 +329,30 @@ private TableSchema getProducedTableSchema() {
}
@Override
- public boolean isLimitPushedDown() {
- return isLimitPushDown;
+ public void applyLimit(long limit) {
+ this.limit = limit;
}
@Override
- public TableSource<RowData> applyLimit(long limit) {
- return new HiveTableSource(
- jobConf,
- flinkConf,
- tablePath,
- catalogTable,
- remainingPartitions,
- hiveVersion,
- partitionPruned,
- projectedFields,
- true,
- limit);
+ public Optional<List<Map<String, String>>> listPartitions() {
+ return Optional.empty();
}
@Override
- public List<Map<String, String>> getPartitions() {
- throw new UnsupportedOperationException(
- "Please use Catalog API to retrieve all
partitions of a table");
+ public void applyPartitions(List<Map<String, String>>
remainingPartitions) {
+ if (catalogTable.getPartitionKeys() != null &&
catalogTable.getPartitionKeys().size() != 0) {
+ this.remainingPartitions = remainingPartitions;
+ }
Review comment:
I think we can
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]