Skip to content

Support additional DuckDB integer types such as HUGEINT, UHUGEINT, etc - #1797

Merged
iffyio merged 1 commit into
apache:mainfrom
alexander-beedie:duckdb-integer-types
Apr 5, 2025
Merged

iffyio merged 1 commit into
apache:mainfrom
alexander-beedie:duckdb-integer-types

Conversation

@alexander-beedie

@alexander-beedie alexander-beedie commented Apr 4, 2025 •

Copy link
Copy Markdown
Contributor
  • Adds DataType support for the following integer types, with tests:

    HUGEINT (128bit)
    UHUGEINT (128bit, unsigned)
    UTINYINT
    USMALLINT
    UBIGINT

    (ref: https://duckdb.org/docs/stable/sql/data_types/numeric.html#integer-types)

  • Also: standardised link text/case for database names. Was mixed between (for example) [Postgres], [postgres], [postgresql], etc. That is now standardised to [PostgreSQL], and other DB names were similarly case-standardised (bigquery → BigQuery, clickhouse → ClickHouse, etc).

  • Cleaned up a few other minor nits in the DataType docstrings.


Note: the clippy lint from the new Rust version is addressed by #1796; I can rebase on that once it is merged.

@iffyio iffyio 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.

LGTM! Thanks @alexander-beedie!

@iffyio

iffyio commented Apr 4, 2025

Copy link
Copy Markdown
Contributor

@alexander-beedie could you merge in latest main in order to fix the ci lint issue?

@alexander-beedie

alexander-beedie commented Apr 5, 2025 •

Copy link
Copy Markdown
Contributor Author

@alexander-beedie could you merge in latest main in order to fix the ci lint issue?

@iffyio: done :)

@iffyio
iffyio merged commit 4deed26 into apache:main Apr 5, 2025
@alexander-beedie
alexander-beedie deleted the duckdb-integer-types branch April 6, 2025 03:36
ayman-sigma pushed a commit to sigmacomputing/sqlparser-rs that referenced this pull request Apr 10, 2025
apache#1797)

Co-authored-by: Alexander Beedie <alexander.beedie@adia.ae>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants