Merge pull request #1985 from metamx/FixLookupCacheKey

Change LookupExtractionFn cache key to be unique
This commit is contained in:
Xavier Léauté 2015-11-18 10:13:55 -08:00
commit e3e6159336
2 changed files with 3 additions and 3 deletions

View File

@ -30,8 +30,8 @@ import com.fasterxml.jackson.annotation.JsonTypeInfo;
@JsonSubTypes.Type(name = "searchQuery", value = SearchQuerySpecDimExtractionFn.class), @JsonSubTypes.Type(name = "searchQuery", value = SearchQuerySpecDimExtractionFn.class),
@JsonSubTypes.Type(name = "javascript", value = JavascriptExtractionFn.class), @JsonSubTypes.Type(name = "javascript", value = JavascriptExtractionFn.class),
@JsonSubTypes.Type(name = "timeFormat", value = TimeFormatExtractionFn.class), @JsonSubTypes.Type(name = "timeFormat", value = TimeFormatExtractionFn.class),
@JsonSubTypes.Type(name = "lookup", value = LookupExtractionFn.class), @JsonSubTypes.Type(name = "identity", value = IdentityExtractionFn.class),
@JsonSubTypes.Type(name = "identity", value = IdentityExtractionFn.class) @JsonSubTypes.Type(name = "lookup", value = LookupExtractionFn.class)
}) })
/** /**
* An ExtractionFn is a function that can be used to transform the values of a column (typically a dimension) * An ExtractionFn is a function that can be used to transform the values of a column (typically a dimension)

View File

@ -33,7 +33,7 @@ import java.io.IOException;
public class LookupExtractionFn extends FunctionalExtraction public class LookupExtractionFn extends FunctionalExtraction
{ {
private static final byte CACHE_TYPE_ID = 0x5; private static final byte CACHE_TYPE_ID = 0x7;
private final LookupExtractor lookup; private final LookupExtractor lookup;