giraffe icon indicating copy to clipboard operation
giraffe copied to clipboard

Allow parsing of partial CSV strings

Open drdelambre opened this issue 4 years ago • 0 comments

There are some cool things going on with the influxdb-client-js library (namely utilizing the streaming interface it exposed from fetch), that we can't support, because we can't parse partial CSVs in the fromFlux parser.

There have been talks about appending / truncating the data based on a shifting time frame (ie: progressive updates for dashboards). This is not that. There's also talks about adding a pagination interface to expose partial views of the dataset. This is not that.

Instead of waiting for the full CSV to come in from the API before parsing, we want to be able to generate an instance of a parser, and append partial CSV strings like:

#group,false,false,tr

or

true,true,false,false
#datat

or

,,2,2020-10-23T15:14:52.865415455Z,2020-10-23T16:14:52.865415455Z,usage_percent,docker_container_cpu,plexinc/pms-docker,plex,runnin

and have that append rows to the data set as they come in

drdelambre avatar Oct 23 '20 16:10 drdelambre