zhaomin1423 commented on code in PR #5346:
URL: https://github.com/apache/iceberg/pull/5346#discussion_r937330148


##########
spark/v3.3/spark/src/main/java/org/apache/iceberg/spark/source/IcebergSource.java:
##########
@@ -122,8 +122,8 @@ private Spark3Util.CatalogAndIdentifier 
catalogAndIdentifier(CaseInsensitiveStri
     setupDefaultSparkCatalogs(spark);
     String path = options.get(SparkReadOptions.PATH);
 
-    Long snapshotId = propertyAsLong(options, SparkReadOptions.SNAPSHOT_ID);
-    Long asOfTimestamp = propertyAsLong(options, 
SparkReadOptions.AS_OF_TIMESTAMP);
+    Long snapshotId = PropertyUtil.propertyAsLong(options, 
SparkReadOptions.SNAPSHOT_ID, -1);
+    Long asOfTimestamp = PropertyUtil.propertyAsLong(options, 
SparkReadOptions.AS_OF_TIMESTAMP, -1);

Review Comment:
   Thanks for your help, have updated.



-- 
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]

Reply via email to