News for hackers. Stuff that matters.
Re:Show HN: Dassana. JSON-native,schema-less logging solutio... by gauravphoenix on Thursday April 21, 2022 @05:56PM (#31115675)
Not yet. It is quite a bit rough around the edges and far from production use. Besides, it will require creation of multiple tables/column for each schema type (i.e. github schema might conflict with gitlab schema). As such, we decided to flatten the JSONs and use map data type and have our own SQL layer that translates the queries to underlying ClickHouse queries. This allows us to add a lot of syntactic sugar e.g. https://docs.dassana.cloud/docs/query/intro

We might start using that feature in future.

Re:Show HN: Dassana. JSON-native,schema-less logging solutio... by magundu on Friday April 22, 2022 @07:00PM (#31129290)
What do you mean by flatten the JSON? How it is stored in clickhouse?
Re:Show HN: Dassana. JSON-native,schema-less logging solutio... by gauravphoenix on Friday April 22, 2022 @08:25PM (#31129985)
We flatten it to a map and store the map. When you query, we dynamically generate ClickHouse query that queries the map.
Re:Show HN: Dassana. JSON-native,schema-less logging solutio... by magundu on Monday April 25, 2022 @04:28AM (#31151844)
If the JSON is nested, how do you put it the map?

Since map key is one type, how do you handle multiple types of values?

Re:Show HN: Dassana. JSON-native,schema-less logging solutio... by gauravphoenix on Monday April 25, 2022 @01:06PM (#31157740)
we flatten nested JSONs too. Not sure what you meant by second question, can you rephrase or provide an example? Also, feel free to drop me an email or join slack[1]- it will be easier to discuss tech details there.

[1] https://dassanacommunity.slack.com/join/shared_invite/zt-teo...