pbeshai / tidy

Tidy up your data with JavaScript, inspired by dplyr and the tidyverse
https://pbeshai.github.io/tidy
MIT License
725 stars 21 forks source link

leftJoin followed by select everything has unexpected dropped columns #41

Closed pbeshai closed 3 years ago

pbeshai commented 3 years ago

Example:

tidy(
  [{ a: 123, b: 345 }, { a: 452, b: 999}],
  leftJoin([{ a: 452, c: 456 }], { by: 'a' }),
  select(T.everything())
)
// output:
[{"a":123,"b":345},{"a":452,"b":999}]

// expected output: 
[{"a":123,"b":345,"c":undefined},{"a":452,"b":999,"c":456}]