bharos commented on code in PR #11300:
URL: https://github.com/apache/gravitino/pull/11300#discussion_r3330556302


##########
web-v2/web/src/lib/store/metalakes/index.js:
##########
@@ -2187,8 +2187,14 @@ export const fetchViews = createAsyncThunk(
   async ({ init, metalake, catalog, schema }, { getState, dispatch }) => {
     const [err, res] = await to(getViewsApi({ metalake, catalog, schema }))
 
-    if (init && (err || !res)) {
-      throw new Error(err)
+    if (err || !res) {
+      // Catalog doesn't support views (HTTP 405) — return empty views silently
+      if (err?.response?.status === 405) {
+        return { views: [], init }

Review Comment:
   Can you check the PR now 



##########
web-v2/web/src/lib/store/metalakes/index.js:
##########
@@ -2236,6 +2242,10 @@ export const getViewDetails = createAsyncThunk(
     const [err, res] = await to(getViewDetailsApi({ metalake, catalog, schema, 
view }))
 
     if (err || !res) {
+      // Catalog doesn't support views (HTTP 405) — return empty result 
silently
+      if (err?.response?.status === 405) {
+        return { view: null, init }
+      }

Review Comment:
   Can you check the PR now 



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