an-shi-chi-fan opened a new issue, #6720:
URL: https://github.com/apache/gravitino/issues/6720
### Version
main branch
### Describe what's wrong
```java
//org.apache.gravitino.catalog.hive.HiveSchema#buildSchemaProperties
public static Map<String, String> buildSchemaProperties(Database database)
{
Map<String, String> properties =
database.getParameters() != null
? Maps.newHashMap(database.getParameters())
: Maps.newHashMap();
properties.put(HiveSchemaPropertiesMetadata.LOCATION,
database.getLocationUri());
return properties;
}
public SchemaInfo(Schema schema) {
this(schema.name(), schema.comment(), schema.properties(),
schema.auditInfo());
}
// here not filter null value ,map collectors will report
java.lang.NullPointerException on this Collectors
public Map<String, String> properties() {
return schema.properties() == null
? Collections.emptyMap()
: schema.properties().entrySet().stream()
.filter(e -> !hiddenProperties.contains(e.getKey()) &&
e.getValue() != null)
.collect(Collectors.toMap(Map.Entry::getKey,
Map.Entry::getValue));
}
```
### Error message and/or stacktrace
java.lang.NullPointerException: null
### How to reproduce
add a filter
### Additional context
_No response_
--
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]