in src/main/java/org/apache/paimon/trino/TrinoConnectorFactory.java [186:201]
private static FileSystemModule newFileSystemModule(
String catalogName, ConnectorContext context) {
Constructor<?> constructor = FileSystemModule.class.getConstructors()[0];
try {
if (constructor.getParameterCount() == 0) {
return (FileSystemModule) constructor.newInstance();
} else {
// for trino 440
return (FileSystemModule)
constructor.newInstance(
catalogName, context.getNodeManager(), context.getOpenTelemetry());
}
} catch (InstantiationException | InvocationTargetException | IllegalAccessException e) {
throw new RuntimeException(e);
}
}