Skip to content

rust snowflake: bulk ingest with the ADBC_INGEST_OPTION_MODE_CREATE_APPEND mode does not fail during schema updates #3945

@Pranav2612000

Description

@Pranav2612000

What happened?

  • Using the rust adbc snowflake driver, bulk ingest some data with the schema
    let schema = Schema::new(vec![
        Field::new("id", DataType::Int32, false),
        Field::new("name", DataType::Utf8, false),
    ]);
  • Update this schema to
    let extended_schema = Schema::new(vec![
        Field::new("id", DataType::Int32, false),
        Field::new("name", DataType::Utf8, false),
        Field::new("age", DataType::Int32, false),
    ]);

  • bulk ingest more data into the same table, with ADBC_INGEST_OPTION_MODE set to ADBC_INGEST_OPTION_MODE_CREATE_APPEND

Expected behaviour

  • The ingestion should fail with the ADBC_STATUS_ALREADY_EXISTS error

Observed behaviour

  • Ingestion completes with partial data return, and no error is returned

Stack Trace

How can we reproduce the bug?

https://github.com/Pranav2612000/snowflake-adbc-test/blob/master/src/main.rs

Environment/Setup

adbc_core = "0.22.0"
adbc_driver_manager = "0.22.0"
arrow = { version = "57.0.0", features = ["prettyprint"] }
arrow-array = { version = "57.0.0", features = ["chrono-tz"] }
arrow-schema = "57.1.0"

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type: bugSomething isn't working

    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