This is an automated email from the ASF dual-hosted git repository.

lzljs3620320 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/paimon.git


The following commit(s) were added to refs/heads/master by this push:
     new 6c7d41cbe4 [rest] Add audit options to view options
6c7d41cbe4 is described below

commit 6c7d41cbe4cf629b4984ce2f419ba1cf6e8a5d52
Author: JingsongLi <[email protected]>
AuthorDate: Fri Mar 21 23:17:48 2025 +0800

    [rest] Add audit options to view options
---
 paimon-core/src/main/java/org/apache/paimon/rest/RESTCatalog.java | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/paimon-core/src/main/java/org/apache/paimon/rest/RESTCatalog.java 
b/paimon-core/src/main/java/org/apache/paimon/rest/RESTCatalog.java
index 7ea1f84a2c..3fea24bdf3 100644
--- a/paimon-core/src/main/java/org/apache/paimon/rest/RESTCatalog.java
+++ b/paimon-core/src/main/java/org/apache/paimon/rest/RESTCatalog.java
@@ -871,13 +871,15 @@ public class RESTCatalog implements Catalog {
 
     private ViewImpl toView(String db, GetViewResponse response) {
         ViewSchema schema = response.getSchema();
+        Map<String, String> options = new HashMap<>(schema.options());
+        response.putAuditOptionsTo(options);
         return new ViewImpl(
                 Identifier.create(db, response.getName()),
                 schema.fields(),
                 schema.query(),
                 schema.dialects(),
                 schema.comment(),
-                schema.options());
+                options);
     }
 
     @Override

Reply via email to