Re: [PR] POC: Add labels to LoadTableResponse from entity internal properties [polaris]

2026-06-03 Thread via GitHub


github-actions[bot] closed pull request #4048: POC: Add labels to 
LoadTableResponse from entity internal properties
URL: https://github.com/apache/polaris/pull/4048


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



Re: [PR] POC: Add labels to LoadTableResponse from entity internal properties [polaris]

2026-05-28 Thread via GitHub


github-actions[bot] commented on PR #4048:
URL: https://github.com/apache/polaris/pull/4048#issuecomment-4569904646

   This PR is stale because it has been open 30 days with no activity. Remove 
stale label or comment or this will be closed in 5 days.


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



Re: [PR] POC: Add labels to LoadTableResponse from entity internal properties [polaris]

2026-03-24 Thread via GitHub


laskoviymishka commented on code in PR #4048:
URL: https://github.com/apache/polaris/pull/4048#discussion_r2984436691


##
runtime/service/src/main/java/org/apache/polaris/service/catalog/iceberg/IcebergCatalogHandler.java:
##
@@ -684,6 +684,25 @@ public void reportMetrics(TableIdentifier identifier, 
ReportMetricsRequest reque
 return null; // could be an external catalog
   }
 
+  /**
+   * Extract labels from a table entity's internal properties. Properties with 
the "label." prefix
+   * are catalog-scoped metadata (not part of Iceberg table state) and are 
surfaced as labels in the
+   * LoadTableResponse.
+   */
+  public Map getLabelsForTable(TableIdentifier 
tableIdentifier) {
+IcebergTableLikeEntity entity = getTableEntity(tableIdentifier);
+if (entity == null) {
+  return Map.of();
+}
+Map labels = new java.util.HashMap<>();
+entity.getInternalPropertiesAsMap().forEach((key, value) -> {
+  if (key.startsWith("label.")) {

Review Comment:
   that's a POC, i think if this would be accepted at IRC Spec we may find a 
better way, but using a special prefix may be an acceptable solution too.



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



Re: [PR] POC: Add labels to LoadTableResponse from entity internal properties [polaris]

2026-03-24 Thread via GitHub


dimas-b commented on code in PR #4048:
URL: https://github.com/apache/polaris/pull/4048#discussion_r2982585848


##
runtime/service/src/main/java/org/apache/polaris/service/catalog/iceberg/IcebergCatalogHandler.java:
##
@@ -684,6 +684,25 @@ public void reportMetrics(TableIdentifier identifier, 
ReportMetricsRequest reque
 return null; // could be an external catalog
   }
 
+  /**
+   * Extract labels from a table entity's internal properties. Properties with 
the "label." prefix
+   * are catalog-scoped metadata (not part of Iceberg table state) and are 
surfaced as labels in the
+   * LoadTableResponse.
+   */
+  public Map getLabelsForTable(TableIdentifier 
tableIdentifier) {
+IcebergTableLikeEntity entity = getTableEntity(tableIdentifier);
+if (entity == null) {
+  return Map.of();
+}
+Map labels = new java.util.HashMap<>();
+entity.getInternalPropertiesAsMap().forEach((key, value) -> {
+  if (key.startsWith("label.")) {

Review Comment:
   I do not think internal properties were meant to be exposed to clients at 
all, but using a prefix to filter them might be ok. This probably deserves a 
discussion on the Polaris `dev` ML.



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