Skip to content

Two diverging copies of extract_column_value #3172

@atharvalade

Description

@atharvalade

The Postgres source connector has two nearly identical functions for extracting column values from a PgRow:

  • extract_column_value (method on PostgresSource, line ~1314) used by the sequential path
  • extract_column_value_static (free function, line ~1903) used by the parallel/chunked path

These handle different sets of Postgres types. The static version handles NUMERIC, DATE, and BPCHAR. The method version does not. Any bug fix or new type added to one will silently not apply to the other.

During the benchmark, fixing NUMERIC and DATE handling in the static version left the method version still broken for those types.

Fix: Delete one, keep a single free function, call it from both code paths.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions