Conversation
|
Can we do this in a backward compatible manner so that existing users of non-list indexType in FieldConfig don't break ? |
Just noticed that constructor retain the original field and just adds the new field as nullable. In that case, this should be fine. |
|
@walterddr could you add a test config with multiple indexes to |
Codecov Report
@@ Coverage Diff @@
## master #7631 +/- ##
============================================
- Coverage 71.60% 65.26% -6.35%
- Complexity 3942 3996 +54
============================================
Files 1562 1529 -33
Lines 79465 78057 -1408
Branches 11766 11635 -131
============================================
- Hits 56903 50943 -5960
- Misses 18724 23494 +4770
+ Partials 3838 3620 -218
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
@siddharthteotia: yes. jackson has this limitation that only one
I already added a multiple indexes FieldConfigs in TestSerde. did you mean I should also add a fieldConfigList item in the backward-compatibility test cases, e.g. in |
No, I meant add a test config with multiple indexes to |
Ahh. Didn't rebase against your PR. let me rebase and add a test case |
786315a to
8fe0e75
Compare
| _name = name; | ||
| _encodingType = encodingType; | ||
| _indexType = indexType; | ||
| _indexTypes = indexTypes == null ? Lists.newArrayList(indexType) : indexTypes; |
There was a problem hiding this comment.
We don't want to have a single element null as _indexTypes when both indexType and indexTypes are null.
I'd recommend having _indexTypes never null, but can be empty.
pinot-spi/src/main/java/org/apache/pinot/spi/config/table/FieldConfig.java
Outdated
Show resolved
Hide resolved
| private final Map<String, String> _properties; | ||
|
|
||
| @Deprecated | ||
| public FieldConfig(String name, |
There was a problem hiding this comment.
(optional, code format) keep parameters in the same line. Same for the other constructor
pinot-spi/src/main/java/org/apache/pinot/spi/config/table/FieldConfig.java
Outdated
Show resolved
Hide resolved
pinot-spi/src/main/java/org/apache/pinot/spi/config/table/FieldConfig.java
Outdated
Show resolved
Hide resolved
FieldConfig currently listed IndexType as singleton. This is not true since a field can have multiple indexing methods.
FieldConfig currently listed IndexType as singleton.
This is not true since a field can have multiple indexing methods.