Open krlmlr opened 2 years ago
Is there an inverse of nest_join() ?
No, we have only dm_unnest_tbl().
We can implement unnest_unjoin()
, it might return a list of 2 tables :
Is it useful ?
dm_unnest_tbl()
, dm_unpack_tbl()
and a similar operation for the JSON variants is probably fine for now.
I think, as a rule, if an operation returns more than one table it is most useful as an operation on a dm.
For dataframes,
json_join()
can be implemented as a combination of nesting anjsonlite::toJSON()
. For databases it's the other way round: some databases (e.g. SQL Server) have a syntax to create JSON from a table but don't know how to work with nested tables.Let's create sub-issues and prioritize.
nest()
is tonest_join()
asunnest()
is to ...? (Is there an inverse ofnest_join()
?)Created on 2022-04-07 by the reprex package (v2.0.1)