924060929 commented on code in PR #70884:
URL: https://github.com/apache/doris/pull/70884#discussion_r4676448425
##########
fe/fe-connector/fe-connector-paimon/src/main/java/org/apache/doris/connector/paimon/PaimonScanParams.java:
##########
@@ -563,6 +563,55 @@ public static boolean preservesBoundSchema(Map<String,
String> options) {
return options != null &&
Boolean.parseBoolean(options.get(PRESERVE_BOUND_SCHEMA));
}
+ static java.util.OptionalLong boundSchemaId(Map<String, String> options) {
+ if (options == null) {
+ return java.util.OptionalLong.empty();
+ }
+ String schemaId = options.get(BOUND_SCHEMA_ID);
+ return schemaId == null
+ ? java.util.OptionalLong.empty()
+ : java.util.OptionalLong.of(Long.parseLong(schemaId));
+ }
+
+ static boolean hasPinnedVersion(Map<String, String> options) {
+ if (options == null || options.isEmpty()
+ || options.containsKey(CoreOptions.INCREMENTAL_BETWEEN.key())
+ ||
options.containsKey(CoreOptions.INCREMENTAL_BETWEEN_TIMESTAMP.key())) {
+ return false;
+ }
+ return options.containsKey(CoreOptions.SCAN_SNAPSHOT_ID.key())
+ || options.containsKey(CoreOptions.SCAN_TAG_NAME.key())
+ || isPinnedEmptyScan(options);
+ }
+
+ static boolean supportsPartitionViewVersion(Map<String, String> options) {
+ if (!hasPinnedVersion(options) ||
options.containsKey(PINNED_FILE_CREATION_TIME)) {
+ return false;
+ }
+ if (!isOptionsPin(options)) {
+ return true;
Review Comment:
Fixed in d4ece8ec2ba: `collectPartitionsAuthenticated` now applies
`scan.tag-name` via `PaimonScanParams.copyWithHistoricalSchema` when
`scan.snapshot-id` is absent (including after the tag's underlying snapshot
file expires), and `PaimonNativePartitionAndCacheVersionTest` verifies the tag
partition listing.
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]