jamescooke,
@jamescooke@fosstodon.org avatar

Here's a smell that your Big Query query ain't that big - lots of 1 row tables getting used to load config-like values, which are then used for JOINs later.

So much cruft to clean up 😥 .

My brain says: - maybe couldda just done it in a PAndAs?! Let's definitely not learn about CTEs right?! 😬

adamchainz,
@adamchainz@fosstodon.org avatar

@jamescooke “Go Big or go DataFrame”

Good luck with the migration!

jamescooke,
@jamescooke@fosstodon.org avatar

@adamchainz I like this phrase very much and I’m going to keep it and reuse it. ☺️

Last year we started migrating not-big things into DataFrame-driven tasks and it’s gone very well. Quicker tests and fewer test failures have been immediate wins.

However, these 1-row config-like tables aren’t going into Pandas… we’ll template their values into the BQ queries that need them, the way it should have been done in the first place.

adamchainz,
@adamchainz@fosstodon.org avatar

@jamescooke Sounds good. Did you try Polars yet, since it’s the new hotness?

jamescooke, (edited )
@jamescooke@fosstodon.org avatar

@adamchainz Lol no have not tried Polars. Because I'm old this has been scheduled for 2029 - this allows me to remain approx 5 years behind "THE CURVE". 🧓

adamchainz,
@adamchainz@fosstodon.org avatar

@jamescooke Just in time for the release of grizzlies 😜

  • All
  • Subscribed
  • Moderated
  • Favorites
  • random
  • Durango
  • DreamBathrooms
  • thenastyranch
  • magazineikmin
  • khanakhh
  • InstantRegret
  • Youngstown
  • ngwrru68w68
  • slotface
  • rosin
  • tacticalgear
  • mdbf
  • kavyap
  • modclub
  • JUstTest
  • osvaldo12
  • ethstaker
  • cubers
  • normalnudes
  • everett
  • tester
  • GTA5RPClips
  • Leos
  • cisconetworking
  • provamag3
  • anitta
  • megavids
  • lostlight
  • All magazines