Skip to content

ORDER BY works incorrectly on OCTEON (mips64 big-endian) platform #5548

@bgli100

Description

@bgli100

What happens?

400.csv

D select id,create_time from '/disk/400.csv'  order by id limit 200;
┌───────┬─────────────────────┐
│  id   │     create_time     │
│ int32 │      timestamp      │
├───────┼─────────────────────┤
│ 50048 │ 2022-11-22 12:00:08 │
│ 50304 │ 2022-11-22 12:00:09 │
│ 50049 │ 2022-11-22 12:00:08 │
│ 50305 │ 2022-11-22 12:00:09 │
│ 50050 │ 2022-11-22 12:00:08 │
│ 50306 │ 2022-11-22 12:00:09 │
│ 50051 │ 2022-11-22 12:00:08 │
│ 50307 │ 2022-11-22 12:00:09 │
│ 50052 │ 2022-11-22 12:00:08 │
│ 50308 │ 2022-11-22 12:00:09 │
│   ·   │          ·          │
│   ·   │          ·          │
│   ·   │          ·          │
│ 50143 │ 2022-11-22 12:00:08 │
│ 50399 │ 2022-11-22 12:00:09 │
│ 50144 │ 2022-11-22 12:00:08 │
│ 50400 │ 2022-11-22 12:00:09 │
│ 50145 │ 2022-11-22 12:00:08 │
│ 50401 │ 2022-11-22 12:00:09 │
│ 50146 │ 2022-11-22 12:00:08 │
│ 50402 │ 2022-11-22 12:00:09 │
│ 50147 │ 2022-11-22 12:00:08 │
│ 50148 │ 2022-11-22 12:00:08 │
├───────┴─────────────────────┤
│     200 rows (20 shown)     │
└─────────────────────────────┘

To Reproduce

Run the following query:
select id,create_time from '/disk/400.csv' order by id limit 200;

OS:

Linux on OCTEON (mips64, big-endian)

DuckDB Version:

0.5 and 0.6 (0.4 works OK)

DuckDB Client:

DuckDB shell

Full Name:

Alvin Li

Affiliation:

No Affiliation

Have you tried this on the latest master branch?

  • I agree

Have you tried the steps to reproduce? Do they include all relevant data and configuration? Does the issue you report still appear there?

  • I agree

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions