FANNG1 commented on code in PR #6824:
URL: https://github.com/apache/gravitino/pull/6824#discussion_r2053266982
##########
spark-connector/spark-common/src/main/java/org/apache/gravitino/spark/connector/jdbc/JdbcPropertiesConverter.java:
##########
@@ -63,6 +76,13 @@ public Map<String, String>
toSparkCatalogProperties(Map<String, String> properti
@Override
public Map<String, String> toGravitinoTableProperties(Map<String, String>
properties) {
+ if (!this.supportsTableProperties) {
+ for (String key : properties.keySet()) {
+ if (key.equals("owner")) {
Review Comment:
How about using the following code?
```java
for (String key : properties.keySet()) {
if (!"owner".equalsIgnoreCase(key)) {
throw new UnsupportedOperationException("Doesn't support table property
" + key);
}
}
return Collections.emptyMap();
```
--
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]