teragrep / pth_10

Data Processing Language (DPL) translator for Apache Spark
GNU Affero General Public License v3.0
0 stars 2 forks source link

Rangemap results have the word "WrappedArray" in them #241

Closed 51-code closed 4 months ago

51-code commented 5 months ago

Describe the bug

The query: index=abc earliest=2021-03-01T00:00:00.000+03:00 latest=2021-03-10T00:00:00.000+03:00 | timechart count | rangemap field=count lo=0-1000 hi=2000-3000 default=other returns the column range, which has values like "WrappedArray(lo)" and "WrappedArray(hi)".

Expected behavior

The word WrappedArray (the datatype) shouldn't be returned in the values.

How to reproduce

Run the query.

Screenshots

Software version

PTH-10: 4.18.0-8-ge7e4190c

Desktop (please complete the following information if relevant):

Additional context

There was a resent change in TypeParser for supporting Lists and Arrays, which is probably the culprit.

After fixing, should probably also check other commands that utilize TypeParser.

eemhu commented 4 months ago

There was indeed issues of not processing MV fields, which is fixed, however this WrappedArray(...) issue seems to be on the UI side of things - it does not happen without aggregates present.

eemhu commented 4 months ago

PR submitted

eemhu commented 4 months ago

Related: https://github.com/teragrep/ajs_01/issues/252 Added MV field support and PR merged, so closing this for now.