This is an automated email from the ASF dual-hosted git repository.
emaynard pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/polaris.git
The following commit(s) were added to refs/heads/main by this push:
new 99add28dc Implement service interfaces for policies & generic tables
(#1263)
99add28dc is described below
commit 99add28dce82481adcddd862af9f7c3c4c5deeb3
Author: Eric Maynard <[email protected]>
AuthorDate: Wed Mar 26 23:15:21 2025 -0700
Implement service interfaces for policies & generic tables (#1263)
* ready
* autolint
---
service/common/build.gradle.kts | 1 +
.../generic/GenericTableCatalogAdapter.java | 25 ++++++++++++++++++++++
.../service/catalog/policy/PolicyServiceImpl.java | 25 ++++++++++++++++++++++
3 files changed, 51 insertions(+)
diff --git a/service/common/build.gradle.kts b/service/common/build.gradle.kts
index a98ef50a9..fec8f12c7 100644
--- a/service/common/build.gradle.kts
+++ b/service/common/build.gradle.kts
@@ -28,6 +28,7 @@ dependencies {
implementation(project(":polaris-api-management-model"))
implementation(project(":polaris-api-management-service"))
implementation(project(":polaris-api-iceberg-service"))
+ implementation(project(":polaris-api-catalog-service"))
implementation(platform(libs.iceberg.bom))
implementation("org.apache.iceberg:iceberg-api")
diff --git
a/service/common/src/main/java/org/apache/polaris/service/catalog/generic/GenericTableCatalogAdapter.java
b/service/common/src/main/java/org/apache/polaris/service/catalog/generic/GenericTableCatalogAdapter.java
new file mode 100644
index 000000000..f479afcd7
--- /dev/null
+++
b/service/common/src/main/java/org/apache/polaris/service/catalog/generic/GenericTableCatalogAdapter.java
@@ -0,0 +1,25 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.polaris.service.catalog.generic;
+
+import jakarta.enterprise.context.RequestScoped;
+import
org.apache.polaris.service.catalog.api.PolarisCatalogGenericTableApiService;
+
+@RequestScoped
+public class GenericTableCatalogAdapter implements
PolarisCatalogGenericTableApiService {}
diff --git
a/service/common/src/main/java/org/apache/polaris/service/catalog/policy/PolicyServiceImpl.java
b/service/common/src/main/java/org/apache/polaris/service/catalog/policy/PolicyServiceImpl.java
new file mode 100644
index 000000000..55bb18000
--- /dev/null
+++
b/service/common/src/main/java/org/apache/polaris/service/catalog/policy/PolicyServiceImpl.java
@@ -0,0 +1,25 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.polaris.service.catalog.policy;
+
+import jakarta.enterprise.context.RequestScoped;
+import org.apache.polaris.service.catalog.api.PolarisCatalogPolicyApiService;
+
+@RequestScoped
+public class PolicyServiceImpl implements PolarisCatalogPolicyApiService {}