Skip to content

Commit

Permalink
AirbyteLib: suppress duckdb reflection warnings (#35300)
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronsteers committed Feb 14, 2024
1 parent b9a86a9 commit a99bb8d
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions airbyte-lib/airbyte_lib/caches/duckdb.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

from __future__ import annotations

import warnings
from pathlib import Path
from textwrap import dedent, indent
from typing import cast
Expand All @@ -15,6 +16,14 @@
from airbyte_lib.telemetry import CacheTelemetryInfo


# Suppress warnings from DuckDB about reflection on indices.
# https://github.com/Mause/duckdb_engine/issues/905
warnings.filterwarnings(
"ignore",
message="duckdb-engine doesn't yet support reflection on indices",
)


class DuckDBCacheConfig(SQLCacheConfigBase, ParquetWriterConfig):
"""Configuration for the DuckDB cache.
Expand Down

0 comments on commit a99bb8d

Please sign in to comment.