Skip to content

Commit 0370282

Browse files
Arrow Flight module - do not bind class to itself (prestodb#24540)
If a connector extending presto-base-arrow-flight does not customise ArrowBlockBuilder and bind the customisation in the connector's module, a runtime error will be thrown because ArrowBlockBuilder is being bound to itself.
1 parent 18cef11 commit 0370282

File tree

1 file changed

+1
-1
lines changed
  • presto-base-arrow-flight/src/main/java/com/facebook/plugin/arrow

1 file changed

+1
-1
lines changed

presto-base-arrow-flight/src/main/java/com/facebook/plugin/arrow/ArrowModule.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,6 @@ public void configure(Binder binder)
4949
binder.bind(ArrowPageSourceProvider.class).in(Scopes.SINGLETON);
5050
binder.bind(ConnectorPageSourceProvider.class).to(ArrowPageSourceProvider.class).in(Scopes.SINGLETON);
5151
binder.bind(Connector.class).to(ArrowConnector.class).in(Scopes.SINGLETON);
52-
binder.bind(ArrowBlockBuilder.class).to(ArrowBlockBuilder.class).in(Scopes.SINGLETON);
52+
binder.bind(ArrowBlockBuilder.class).in(Scopes.SINGLETON);
5353
}
5454
}

0 commit comments

Comments
 (0)