yuqi1129 commented on code in PR #9659:
URL: https://github.com/apache/gravitino/pull/9659#discussion_r2675249210


##########
catalogs/catalog-lakehouse-generic/src/main/java/org/apache/gravitino/catalog/lakehouse/lance/LanceTableOperations.java:
##########
@@ -258,12 +261,33 @@ Table createTableInternal(
       String location)
       throws NoSuchSchemaException, TableAlreadyExistsException {
 
+    Map<String, String> storageProps = 
LancePropertiesUtils.getLanceStorageOptions(properties);
     if (register) {
+      // Try to check if the Lance dataset exists at the location and then 
extract the schema.
+      // Note: We will ignore the columns parameter in this case.
+      LOG.warn(
+          "Registering existing Lance table at location {}. The provided 
schema will be ignored. columns: {}",
+          location,
+          Arrays.toString(columns));

Review Comment:
   It's no needed to do so. 



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

Reply via email to