DuckDB: Querying JSON files as if they were tables
1–10 of 81 posts
Re: DuckDB: Querying JSON files as if they were tables
#2Often I find that the database wants to be the authority and that makes working with different formats a bit uncomfortable.
Re: DuckDB: Querying JSON files as if they were tables
#3Re: DuckDB: Querying JSON files as if they were tables
#4Mind you this isn’t appropriate for most cases. But I love the idea of “you start with text file. You end with text file. All the database stuff, indexes, etc. are just a detail.” Often I find that the database wants to be the authority and that makes working with different formats a bit uncomfortable.
Re: DuckDB: Querying JSON files as if they were tables
#5Mind you this isn’t appropriate for most cases. But I love the idea of “you start with text file. You end with text file. All the database stuff, indexes, etc. are just a detail.” Often I find that the database wants to be the authority and that makes working with different formats a bit uncomfortable.
What does this look like in practice? Using the filesystem as a database?
Re: DuckDB: Querying JSON files as if they were tables
#6I was about to comment about how this is all fantastic stuff, but I've really found reading through duckdb docs quite challenging. But for these json table functions, documentation looks much better.
https://duckdb.org/docs/extensions/json
Need to spend some more time digging in, but this json functionality combined with some kind of file partitioning (Hive or hive-like) looks promising for some of my use cases.
Incidentally, the documentation for hive/parquet stuff is a good example of what I'm talking about above. For the `parquet_scan` function, where can i see all of the possible function parameters? Where can get more information about the specifics of `FILENAME`, `HIVE_PARTITIONING`, etc?
Re: DuckDB: Querying JSON files as if they were tables
#7Mind you this isn’t appropriate for most cases. But I love the idea of “you start with text file. You end with text file. All the database stuff, indexes, etc. are just a detail.” Often I find that the database wants to be the authority and that makes working with different formats a bit uncomfortable.
What does this look like in practice? Using the filesystem as a database?
is a good example of an actual database that uses plaintext files in your filesystem.
I can see the argument that doing this with JSON is better (or worse), but regardless, Recutils is an interesting idea that i wish more people knew about. I can imagine a lot of cool things emerging if people would iterate on the idea.
Re: DuckDB: Querying JSON files as if they were tables
#8Re: DuckDB: Querying JSON files as if they were tables
#9Re: DuckDB: Querying JSON files as if they were tables
#10Mind you this isn’t appropriate for most cases. But I love the idea of “you start with text file. You end with text file. All the database stuff, indexes, etc. are just a detail.” Often I find that the database wants to be the authority and that makes working with different formats a bit uncomfortable.
What does this look like in practice? Using the filesystem as a database?