dburkart / fossil

Simple and expressive time-series database written in Go
BSD 2-Clause "Simplified" License
5 stars 0 forks source link

Adding arrays-within-composites doesn't work #167

Open dburkart opened 1 year ago

dburkart commented 1 year ago

Say I have a schema of the following type:

{"loc":[2]int32,"type":string,}

How do I add a piece of data for this schema in the client? The parser coughs on this:

> append /coords type: click, coords: 1, 2
2023-08-18T20:58:03-07:00 ERR cmd/fossil/client/client.go:272 > error="malformed composite literal"

This is because we implement some naive parsing with strings.Split(). It's probably time to move the client parsing over to use the same query parser that we use on the backend.