• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

Logflare / logflare / 816536411ece77aab96dcc70fbc6400e810bc523-PR-3643
82%
main: 82%

Build:
Build:
LAST BUILD BRANCH: refactor/source-schema-from-flatmap
DEFAULT BRANCH: main
Ran 25 Jun 2026 04:16PM UTC
Jobs 1
Files 487
Run time 2min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

25 Jun 2026 04:02PM UTC coverage: 81.601% (-0.03%) from 81.629%
816536411ece77aab96dcc70fbc6400e810bc523-PR-3643

Pull #3643

github

djwhitt
fix(bigquery): handle nested/heterogeneous list payloads on ingest

Two BigQuery paths crashed on the same blind spot: they inspected only
the head of a list and assumed the rest matched.

EventUtils.wrap_fields/1 (insert path) had clauses only for maps and
{k, v} tuples, so a bare list or scalar element — produced by a
list-of-lists value or a list whose head is a map but whose tail holds
lists/scalars — raised FunctionClauseError and crashed the Broadway
batch-processor stage. Add fallback clauses: bare lists recurse over
their elements, any other value passes through unchanged.

SchemaBuilder (schema-patch path) turned a nested array into a
%TableFieldSchema{} with a tuple type (e.g. {"ARRAY", "STRING"}), which
BigQuery cannot represent and Poison cannot encode, crashing the
per-source Schema updater on patch. Drop just the offending field (tuple
inner type) and filter dropped fields at every collection site, so
sibling fields at any depth still build. to_schema_type/1 is unchanged.

Add regression tests for both paths.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Pull Request #3643: fix(bigquery): handle nested/heterogeneous list payloads on ingest

10 of 10 new or added lines in 2 files covered. (100.0%)

6 existing lines in 2 files now uncovered.

13438 of 16468 relevant lines covered (81.6%)

5086.0 hits per line

Coverage Regressions

Lines Coverage ∆ File
5
66.67
-20.83% lib/logflare/backends/consolidated_sup_worker.ex
1
72.31
-1.54% lib/logflare/logs/search_query_executor.ex
Jobs
ID Job ID Ran Files Coverage
1 816536411ece77aab96dcc70fbc6400e810bc523-PR-3643.1 25 Jun 2026 04:16PM UTC 487
81.6
GitHub Action Run
Source Files on build 816536411ece77aab96dcc70fbc6400e810bc523-PR-3643
  • Tree
  • List 487
  • Changed 4
  • Source Changed 0
  • Coverage Changed 4
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Pull Request #3643
  • PR Base - main (#D0BDF1C2...)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc