nishantmonu51 commented on a change in pull request #5958: Part 2 of changes
for SQL Compatible Null Handling
URL: https://github.com/apache/incubator-druid/pull/5958#discussion_r201373058
##########
File path:
extensions-core/lookups-cached-single/src/main/java/io/druid/server/lookup/LoadingLookup.java
##########
@@ -62,15 +63,19 @@ public LoadingLookup(
@Override
- public String apply(final String key)
+ public String apply(@Nullable final String key)
{
- if (key == null) {
+ String keyEquivalent = NullHandling.nullToEmptyIfNeeded(key);
Review comment:
this is to preserve backwards compatibility,
previously, nulls and empty strings were considered same.
and if a looking has mapping "" -> "someval" then all nulls/empty strings
will be resolved to "someval".
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]