Skip to content

fix replication bug#80

Merged
p-hoffmann merged 4 commits into
developfrom
p-hoffmann/fhir
Apr 23, 2025
Merged

fix replication bug#80
p-hoffmann merged 4 commits into
developfrom
p-hoffmann/fhir

Conversation

@p-hoffmann

Copy link
Copy Markdown
Contributor

No description provided.

Copilot AI review requested due to automatic review settings April 22, 2025 16:30

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR aims to resolve a replication bug in the DuckDB client by updating type mappings, adjusting column name handling, and improving logging.

  • Commented out or modified type mappings for UUID, BOOL_ARRAY, and BYTEA_ARRAY.
  • Updated the duckdb_column_spec function to append a suffix for duplicate column names.
  • Added logging statements and adjusted array cell conversion behavior.
Comments suppressed due to low confidence (2)

ext/trex/clients/duckdb.rs:122

  • [nitpick] Appending the suffix directly to the column name with the provided x parameter may result in ambiguous column names. Consider using an explicit separator to improve clarity in the generated column names.
s.push_str(x);

ext/trex/clients/duckdb.rs:523

  • Returning Value::Null for array types may lead to data loss if the array values are needed. Please confirm that this behavior is intended or implement proper conversion logic.
Cell::Array(a) => Value::Null, //a.into(),
@p-hoffmann p-hoffmann merged commit 2120521 into develop Apr 23, 2025
@p-hoffmann p-hoffmann deleted the p-hoffmann/fhir branch April 23, 2025 00:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants