Description:
I was having a weird issue where flowctl catalog pull-specs --captures=true --collections=true wasn't returning any captures, but flowctl catalog pull-specs --captures=true --collections=false was, and realized that the first command was returning 1001 specs, which is suspiciously close to PostgREST's max row limit. Turns out that even though we're paginating the inputs, we still need to paginate the queries themselves.
Existing flowctl
$ flowctl catalog pull-specs --captures=true --collections=true --prefix <...>
Wrote 1001 specifications under file:///Users/js/Documents/estuary/automatic-backfills/test/flow.yaml.
Updated flowctl
$ /usr/local/bin/flowctl catalog pull-specs --captures=true --collections=true --prefix <...>
Wrote 1732 specifications under file:///Users/js/Documents/estuary/automatic-backfills/test/flow.yaml.
Description: I was having a weird issue where
flowctl catalog pull-specs --captures=true --collections=true
wasn't returning any captures, butflowctl catalog pull-specs --captures=true --collections=false
was, and realized that the first command was returning 1001 specs, which is suspiciously close to PostgREST's max row limit. Turns out that even though we're paginating the inputs, we still need to paginate the queries themselves.Existing
flowctl
Updated
flowctl
This change isβ