You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: persistence/relational-jdbc/src/main/java/org/apache/polaris/persistence/relational/jdbc/JdbcBasePersistenceImpl.java
Copy file name to clipboardExpand all lines: persistence/relational-jdbc/src/main/java/org/apache/polaris/persistence/relational/jdbc/QueryGenerator.java
+12-4Lines changed: 12 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -113,12 +113,13 @@ public static PreparedQuery generateDeleteQueryForEntityGrantRecords(
113
113
* Builds a SELECT query using a list of entity ID pairs (catalog_id, id).
114
114
*
115
115
* @param realmId Realm to filter by.
116
+
* @param schemaVersion The schema version of entities table to query
116
117
* @param entityIds List of PolarisEntityId pairs.
117
118
* @return SELECT query to retrieve matching entities.
118
119
* @throws IllegalArgumentException if entityIds is empty.
Copy file name to clipboardExpand all lines: persistence/relational-jdbc/src/main/java/org/apache/polaris/persistence/relational/jdbc/models/Converter.java
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -35,8 +35,8 @@ public interface Converter<T> {
35
35
TfromResultSet(ResultSetrs) throwsSQLException;
36
36
37
37
/**
38
-
* Convert a model into a Map with keys as snake case names, where as values as values of member
39
-
* of model obj.
38
+
* Convert a model into a Map with keys as snake case names, and values as values of member of
Copy file name to clipboardExpand all lines: persistence/relational-jdbc/src/main/java/org/apache/polaris/persistence/relational/jdbc/models/ModelEntity.java
+55-4Lines changed: 55 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -35,7 +35,25 @@ public class ModelEntity implements Converter<PolarisBaseEntity> {
35
35
36
36
publicstaticfinalStringID_COLUMN = "id";
37
37
38
-
publicstaticfinalList<String> ALL_COLUMNS =
38
+
privatestaticfinalList<String> ALL_COLUMNS =
39
+
List.of(
40
+
"id",
41
+
"catalog_id",
42
+
"parent_id",
43
+
"type_code",
44
+
"name",
45
+
"entity_version",
46
+
"sub_type_code",
47
+
"create_timestamp",
48
+
"drop_timestamp",
49
+
"purge_timestamp",
50
+
"to_purge_timestamp",
51
+
"last_update_timestamp",
52
+
"properties",
53
+
"internal_properties",
54
+
"grant_records_version");
55
+
56
+
privatestaticfinalList<String> ALL_COLUMNS_V2 =
39
57
List.of(
40
58
"id",
41
59
"catalog_id",
@@ -54,6 +72,14 @@ public class ModelEntity implements Converter<PolarisBaseEntity> {
Copy file name to clipboardExpand all lines: persistence/relational-jdbc/src/test/java/org/apache/polaris/persistence/relational/jdbc/AtomicMetastoreManagerWithJdbcBasePersistenceImplTest.java
0 commit comments