Skip to content

Default values doesn't work with native_datafusion #3515

Closed

Description

@comphead

Describe the bug

During DF52 migration #3046 the test
select column with default value stopped to work. The default values are not applied

  == Results ==
  !== Correct Answer - 1 ==   == Spark Answer - 1 ==
   struct<col2:boolean>       struct<col2:boolean>
  ![true]                     [null] (QueryTest.scala:244)

The reason DF expects default values to be sent before Column expressions to replace respective value by column name, however currently Comet sends default values after Column

Steps to reproduce

make core && RUST_BACKTRACE=1 COMET_PARQUET_SCAN_IMPL=native_datafusion ./mvnw test -Dsuites="org.apache.comet.CometFuzzTestSuite select column with default value"

Expected behavior

No response

Additional context

No response

Activity

  1. self-assigned this
    on Feb 13, 2026
  2. comphead commented on Feb 13, 2026

    @comphead
    ContributorAuthor

    failing tests

    test("INSERT rows, ALTER TABLE ADD COLUMNS with DEFAULTs, then SELECT them")
    ``` can also be related
    
  3. mbutrovich commented on Feb 13, 2026

    @mbutrovich
    Contributor

    Are you saying they don't work in main or are you tracking df52 branch issues? As far as I know, main is still working as expected after #1756. If this is new behavior in the df52 branch, then we should clarify.

  4. comphead commented on Feb 13, 2026

    @comphead
    ContributorAuthor

    it is related to df52, @andygrove recommended to ignore it for now and address in post migration.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions