sunyuhan1998 commented on code in PR #10895:
URL: https://github.com/apache/gravitino/pull/10895#discussion_r3216051579
##########
lance/lance-rest-server/src/test/java/org/apache/gravitino/lance/service/rest/TestLanceNamespaceOperations.java:
##########
@@ -136,6 +136,10 @@ protected void configure() {
public static void setup() {
when(namespaceWrapper.asNamespaceOps()).thenReturn(namespaceOps);
when(namespaceWrapper.asTableOps()).thenReturn(tableOps);
+ org.apache.gravitino.lance.common.config.LanceConfig lanceConfig =
+ mock(org.apache.gravitino.lance.common.config.LanceConfig.class);
+ when(namespaceWrapper.config()).thenReturn(lanceConfig);
+ when(lanceConfig.getGravitinoMetalake()).thenReturn("test-metalake");
Review Comment:
The FQN for `LanceConfig` is intentional — adding the import would cause a
class name conflict with the existing `LanceNamespaceOperations` in the same
file (from different packages), which broke tests in a previous revision. We'll
keep the FQN here to avoid the collision.
--
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]