Skip to content

PostgreSQL compatibility: ^ evaluates as bitwise XOR instead of exponentiation #22252

Closed

Description

@Dandandan

Split out from #22247.

Mismatch

^ evaluates as bitwise XOR instead of PostgreSQL exponentiation.

SELECT 2 ^ 3;

PostgreSQL:

8

DataFusion:

1

Expected behavior

For PostgreSQL-compatible SQL semantics, DataFusion should either match PostgreSQL's result or raise the same class of domain/semantic error.

Activity

  1. xiedeyantu commented on May 16, 2026

    @xiedeyantu
    Member

    take

  2. added a commit that references this issue on May 22, 2026
    971cf99
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 workinggood first issueGood for newcomers

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions