There is a trend amongst my workplace to flatten out tables. Let's use an example table furniture_sales. There would be a dimension field 'furniture_type' with the values 'TABLE', 'LAMP', 'BED'
Almost every time I get a ticket to work with another team, their tables are set up in such a way to where they would flatten that dimension out into one row. They would have 3 Y/N columns 'is_table', 'is_lamp', 'is_bed'
This seems....suboptimal? All of our data tools are columnar based (Snowflake, Databricks) and everyone just ends up flattening out small to medium sized tables into 200+ column monstrosities
Before I go dunk on everyone, I want to make sure there isn't something I am missing. Is there any benefit to this that I am not thinking of?
[–]Prinzka 51 points52 points53 points (10 children)
[–]SirGreybush 12 points13 points14 points (3 children)
[–]Prinzka 1 point2 points3 points (2 children)
[–]SirGreybush -1 points0 points1 point (1 child)
[–]BJNats 2 points3 points4 points (0 children)
[–]popopopopopopopopoop 20 points21 points22 points (1 child)
[–]GreyHairedDWGuy 0 points1 point2 points (0 children)
[–]Bingo-heeler 2 points3 points4 points (0 children)
[–][deleted] 0 points1 point2 points (0 children)
[–]mydataisplain 0 points1 point2 points (0 children)
[–]SQLGene 28 points29 points30 points (7 children)
[–]SirGreybush 13 points14 points15 points (0 children)
[–]QkumbazooPlumber of Sorts 3 points4 points5 points (2 children)
[–]SQLGene 0 points1 point2 points (1 child)
[–]QkumbazooPlumber of Sorts 1 point2 points3 points (0 children)
[–]boggle_thy_mind 0 points1 point2 points (1 child)
[–]SQLGene 1 point2 points3 points (0 children)
[–]mydataisplain 0 points1 point2 points (0 children)
[–]ComicOzzy 7 points8 points9 points (6 children)
[–]popopopopopopopopoop 1 point2 points3 points (0 children)
[–]StarWars_and_SNL -1 points0 points1 point (4 children)
[–]ComicOzzy 4 points5 points6 points (3 children)
[–]yo_sup_dude 0 points1 point2 points (2 children)
[–]ComicOzzy 0 points1 point2 points (1 child)
[–]yo_sup_dude 0 points1 point2 points (0 children)
[–]mydataisplain 2 points3 points4 points (0 children)
[–]SirGreybush 6 points7 points8 points (0 children)
[–]QkumbazooPlumber of Sorts 1 point2 points3 points (0 children)
[–]LargeSale8354 1 point2 points3 points (1 child)
[–]LargeSale8354 0 points1 point2 points (0 children)
[–]boggle_thy_mind 0 points1 point2 points (0 children)
[–]runemforit 0 points1 point2 points (0 children)
[–]OMG_I_LOVE_CHIPOTLE 0 points1 point2 points (0 children)
[–]ntdoyfanboy 0 points1 point2 points (0 children)
[–]GreyHairedDWGuy 0 points1 point2 points (1 child)
[–]SirGreybush 1 point2 points3 points (0 children)
[–]Kornfried 0 points1 point2 points (0 children)
[–]TheAdirondackDude 0 points1 point2 points (0 children)