TIL: BigQuery only allows 4000 table partitions.
TIL: Zipline has been around for 4001 days!
"Too many partitions produced by query, allowed 4000, query produces at least 4001 partitions."
| Blog | https://pcreux.com |
| Pronouns | he/him |
TIL: BigQuery only allows 4000 table partitions.
TIL: Zipline has been around for 4001 days!
"Too many partitions produced by query, allowed 4000, query produces at least 4001 partitions."
Complex authorization rules defined with boolean expressions are hard to debug and don't allow us to tell users _why_ they can't perform a task.
That's what pundit and activepolicy rely on, though. Maybe cancan did better?
I put together a little something to define rules and compose them so that we can introspect them. WDYT?
https://gist.github.com/pcreux/16c7689cb2c5a6d28def22609bc26089
TIL: `Array.inquiry`
```
» list = ["foo", "bar", "baz"].inquiry
=> ["foo", "bar", "baz"]
» list.foo?
=> true
» list.cat?
=> false
```
New blog post!
Rails Dashboards that scale with SQL and `dry-struct`
Crunch data with SQL, return JSON, wrap it in type-safe DryStructs, and swap in Faker or plug into a data warehouse.
https://pcreux.com/2025/07/09/rails-dashboards-with-sql-and-dry-struct