Skip to content

Commit 6d41b32

Browse files
aaronsteersjatinyadav-cc
authored andcommitted
AirbyteLib: suppress duckdb reflection warnings (airbytehq#35300)
1 parent 130f074 commit 6d41b32

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

airbyte-lib/airbyte_lib/caches/duckdb.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
from __future__ import annotations
66

7+
import warnings
78
from pathlib import Path
89
from textwrap import dedent, indent
910
from typing import cast
@@ -15,6 +16,14 @@
1516
from airbyte_lib.telemetry import CacheTelemetryInfo
1617

1718

19+
# Suppress warnings from DuckDB about reflection on indices.
20+
# https://github.com/Mause/duckdb_engine/issues/905
21+
warnings.filterwarnings(
22+
"ignore",
23+
message="duckdb-engine doesn't yet support reflection on indices",
24+
)
25+
26+
1827
class DuckDBCacheConfig(SQLCacheConfigBase, ParquetWriterConfig):
1928
"""Configuration for the DuckDB cache.
2029

0 commit comments

Comments
 (0)