Skip to content

Support for conversion from bytea to long256 #31

Open
@jerrinot

Description

@jerrinot

Background

Some clients encode arbitrary precision numerical types as raw bytes when stored in Kafka. While QuestDB doesn't yet have native support for arbitrary precision Numeric types, many of these values can be effectively represented using QuestDB's Long256 type. Currently, this conversion requires implementing third-party transforms.

Current Workarounds

Users currently rely on external transforms to handle this conversion. Open source examples:

Proposed Enhancement

Integrate a native Bytes-To-Long256 trancoder directly into the QuestDB Kafka connector to:

  1. Simplify the data ingestion pipeline for users working with arbitrary precision numbers
  2. Eliminate the need for external dependencies
  3. Provide a consistent, well-tested implementation that matches QuestDB's behavior
  4. Improve overall user experience for financial and blockchain use cases where Long256 is commonly used

Notes

This is an interim solution until QuestDB implements full Numeric type support, but would immediately benefit users working with large integers, cryptocurrency hashes, and similar use cases.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions