You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@iceberg.apache.org by "munendrasn (via GitHub)" <gi...@apache.org> on 2023/02/14 03:30:29 UTC

[GitHub] [iceberg] munendrasn commented on a diff in pull request #6823: AWS: set lastEvaluatedKey for listTables in DynamoDb Catalog

munendrasn commented on code in PR #6823:
URL: https://github.com/apache/iceberg/pull/6823#discussion_r1105253250


##########
aws/src/main/java/org/apache/iceberg/aws/dynamodb/DynamoDbCatalog.java:
##########
@@ -329,7 +329,7 @@ public boolean removeProperties(Namespace namespace, Set<String> properties)
   @Override
   public List<TableIdentifier> listTables(Namespace namespace) {
     List<TableIdentifier> identifiers = Lists.newArrayList();
-    Map<String, AttributeValue> lastEvaluatedKey;
+    Map<String, AttributeValue> lastEvaluatedKey = null;

Review Comment:
   For local variables, if used without initialisation, compilation fails (using Jdk8). `error: variable lastEvaluatedKey might not have been initialized` 



-- 
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: issues-unsubscribe@iceberg.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org