Skip to content

Commit

Permalink
Arrow Flight module - do not bind class to itself (#24540)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
elbinpallimalilibm authored Feb 12, 2025
1 parent 18cef11 commit 0370282
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,6 @@ public void configure(Binder binder)
binder.bind(ArrowPageSourceProvider.class).in(Scopes.SINGLETON);
binder.bind(ConnectorPageSourceProvider.class).to(ArrowPageSourceProvider.class).in(Scopes.SINGLETON);
binder.bind(Connector.class).to(ArrowConnector.class).in(Scopes.SINGLETON);
binder.bind(ArrowBlockBuilder.class).to(ArrowBlockBuilder.class).in(Scopes.SINGLETON);
binder.bind(ArrowBlockBuilder.class).in(Scopes.SINGLETON);
}
}

0 comments on commit 0370282

Please sign in to comment.