Closed xqzhou closed 2 years ago
Thanks for the details issue and for the data! I'm currently rewriting the encoding layer so this should be fixed this week
We are no longer using msgpack, we switched to a custom encoding layer. I can confirm that the query works now:
select city, avg(review_scores_rating) as avg_rating from listing group by city order by avg_rating desc;
{
"city": "Beijing",
"avg_rating": 90
}
What version of Genji are you using?
What did you do?
db.Exec("CREATE TABLE listing")
db.Exec("INSERT INTO listing VALUES ?", &listing)
select city, avg(review_scores_rating) as avg_rating from listing group by city order by avg_rating desc;
What did you expect to see?
average rating grouped by city
What did you see instead?
msgpack: invalid code=d9 decoding bytes length
Test data & Genji database attached
airbnb-listings-10.txt listing.db.zip