Conversation
Yes, but lets leave it to a separate PR
Agree, will add it on this PR.
The json path rules was not clear to me, But I believe I understand now, if the filter is applied on simple value (string, number, boolean, ...) then it is applied on that value. But if it is applied on array or object, it is applies on each element. I will change the code, we might not need the
Saw that, will fix them. |
| } | ||
| Rule::filter => { | ||
| if flat_arrays_on_filter && json.get_type() == SelectValueType::Array { | ||
| if json.get_type() == SelectValueType::Array |
There was a problem hiding this comment.
Is there any impact on performance from this change? (always flattening also without filter)
Co-authored-by: Omer Shadmi <76992134+oshadmi@users.noreply.github.com>
|
@oshadmi fixed. |
Replace #10
Few comments up til now:
full_scanorall? (currently it seems to be allowed by the grammar)flat_arrays_on_filter- you mean we should not iterate all array entries, but only the relevant ones (e.g., if using a union, no need to iterate all?)And not sure I understand, for example, in
calc_internalinRule::filterin theelseclause we passtrueand not the param we gotflat_arrays_on_filterfilter_inner,filter_nested) so they are commented out to be reviewed later