zoudan commented on code in PR #3128:
URL: https://github.com/apache/calcite/pull/3128#discussion_r1148560654
##########
core/src/main/java/org/apache/calcite/sql/fun/SqlLibraryOperatorTableFactory.java:
##########
@@ -70,18 +71,44 @@ private SqlLibraryOperatorTableFactory(Class... classes) {
/** A cache that returns an operator table for a given library (or set of
* libraries). */
@SuppressWarnings("methodref.receiver.bound.invalid")
- private final LoadingCache<ImmutableSet<SqlLibrary>, SqlOperatorTable> cache
=
+ private final LoadingCache<CacheKey, SqlOperatorTable> cache =
CacheBuilder.newBuilder().build(CacheLoader.from(this::create));
+ /**
+ * Cache key that contains library set and a flag indicate whether include
operators under
Review Comment:
Because I want to handle the special case in
`DocumentationTest#testAllFunctionsAreDocumented`, e.g. we do not want to
include the operators under 'ALL' when we get operators under 'SPARK'.
--
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]