Skip to main content

Datus Hologres Adapter

Alibaba Cloud Hologres adapter for Datus. It uses the PostgreSQL wire protocol while preserving Hologres-specific namespaces, table properties, and SQL rules.

Installation

pip install datus-hologres

Configuration

services:
  datasources:
    hologres:
      type: hologres
      host: ${HOLOGRES_HOST}
      port: ${HOLOGRES_PORT}
      username: ${HOLOGRES_ACCESS_KEY_ID}
      password: ${HOLOGRES_ACCESS_KEY_SECRET}
      database: ${HOLOGRES_DATABASE}
      schema: public
      sslmode: prefer

access_key_id and access_key_secret are also accepted as aliases for username and password. You can pass a console endpoint either as a hostname or as hostname:port; an explicitly configured port must match an embedded endpoint port. Hologres public endpoints normally use port 80. Use the SSL mode configured on the target Hologres instance.

The adapter supports table, schema.table, and database.schema.table identifiers. It filters Hologres internal schemas from normal metadata listings and includes Hologres storage properties in generated table DDL.

Tests

Unit tests do not require cloud credentials:

uv run --all-packages --with pytest pytest datus-hologres/tests/unit -m "not integration"

Live tests require the following environment variables:

HOLOGRES_HOST=
HOLOGRES_PORT=80
HOLOGRES_DATABASE=
HOLOGRES_SCHEMA=public
HOLOGRES_ACCESS_KEY_ID=
HOLOGRES_ACCESS_KEY_SECRET=
HOLOGRES_SSLMODE=prefer
# Set to true only for an instance type that supports materialized views.
HOLOGRES_TEST_MATERIALIZED_VIEW=false
# Optional second database for cross-database schema-routing coverage.
HOLOGRES_SECONDARY_DATABASE=
HOLOGRES_SECONDARY_SCHEMA=public
# Optional preconfigured schema.table or database.schema.table foreign table.
HOLOGRES_TEST_FOREIGN_TABLE=

The integration suite creates an isolated temporary schema, loads a deterministic Tiny TPC-H fixture, and removes the schema when the test session finishes.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

datus_hologres-0.1.0.tar.gz (19.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

datus_hologres-0.1.0-py3-none-any.whl (11.4 kB view details)

Uploaded Python 3

File details

Details for the file datus_hologres-0.1.0.tar.gz.

File metadata

  • Download URL: datus_hologres-0.1.0.tar.gz
  • Upload date:
  • Size: 19.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.12.13

File hashes

Hashes for datus_hologres-0.1.0.tar.gz
Algorithm Hash digest
SHA256 b5baaad74f5af02eafbc1e3e92086e9ad0f6b9365024ed760e5f644f425b5984
MD5 993d508e15936ad8b6137ab36262f631
BLAKE2b-256 b300984f07eeff57973318f3bb9cdacc333822f7763c2b3b8573e00f6a970ff0

See more details on using hashes here.

File details

Details for the file datus_hologres-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: datus_hologres-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 11.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.12.13

File hashes

Hashes for datus_hologres-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 fe68c9cdc717ef7030dffa3989a4e1f9ebf499e417c22515c43cb6bb0ca1bcb1
MD5 31499828624615f18a4e78245ba05e5c
BLAKE2b-256 076ed478a72e8a38d45131759b15002c4fea4384eb2f5bef766e0a90f404ac23

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page