-
Notifications
You must be signed in to change notification settings - Fork 228
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Run qdrant server in local tests * Add qdrant to test destination configs * Fix stringify UUID objects * Install qdrant deps * Fix qdrant image version * Disable httpx logging in tests * Add index and use order by for fetching state * Try qdrant local support * Fix qdrant load stored state * Disable parallel load in qdrant local * Test destination config for qdrant local and server * Fixes * qdrant example test * Missing module * Cleanup * resolves configuration to get full capabilities in load * uses embedded qdrant for zendesk example --------- Co-authored-by: Marcin Rudolf <[email protected]>
- Loading branch information
Showing
16 changed files
with
348 additions
and
154 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,7 +21,7 @@ env: | |
RUNTIME__SENTRY_DSN: https://[email protected]/4504819859914752 | ||
RUNTIME__LOG_LEVEL: ERROR | ||
RUNTIME__DLTHUB_TELEMETRY_ENDPOINT: ${{ secrets.RUNTIME__DLTHUB_TELEMETRY_ENDPOINT }} | ||
ACTIVE_DESTINATIONS: "[\"duckdb\", \"postgres\", \"filesystem\", \"weaviate\"]" | ||
ACTIVE_DESTINATIONS: "[\"duckdb\", \"postgres\", \"filesystem\", \"weaviate\", \"qdrant\"]" | ||
ALL_FILESYSTEM_DRIVERS: "[\"memory\", \"file\"]" | ||
|
||
DESTINATION__WEAVIATE__VECTORIZER: text2vec-contextionary | ||
|
@@ -63,6 +63,11 @@ jobs: | |
--health-timeout 5s | ||
--health-retries 5 | ||
qdrant: | ||
image: qdrant/qdrant:v1.8.4 | ||
ports: | ||
- 6333:6333 | ||
|
||
steps: | ||
- name: Check out | ||
uses: actions/checkout@master | ||
|
@@ -90,7 +95,7 @@ jobs: | |
key: venv-${{ runner.os }}-${{ steps.setup-python.outputs.python-version }}-${{ hashFiles('**/poetry.lock') }}-local-destinations | ||
|
||
- name: Install dependencies | ||
run: poetry install --no-interaction -E postgres -E duckdb -E parquet -E filesystem -E cli -E weaviate --with sentry-sdk --with pipeline -E deltalake | ||
run: poetry install --no-interaction -E postgres -E duckdb -E parquet -E filesystem -E cli -E weaviate -E qdrant --with sentry-sdk --with pipeline -E deltalake | ||
|
||
- name: create secrets.toml | ||
run: pwd && echo "$DLT_SECRETS_TOML" > tests/.dlt/secrets.toml | ||
|
@@ -100,6 +105,7 @@ jobs: | |
name: Run tests Linux | ||
env: | ||
DESTINATION__POSTGRES__CREDENTIALS: postgresql://loader:loader@localhost:5432/dlt_data | ||
DESTINATION__QDRANT__CREDENTIALS__location: http://localhost:6333 | ||
|
||
- name: Stop weaviate | ||
if: always() | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
from dlt.common.destination.exceptions import DestinationTerminalException | ||
|
||
|
||
class InvalidInMemoryQdrantCredentials(DestinationTerminalException): | ||
def __init__(self) -> None: | ||
super().__init__( | ||
"To use in-memory instance of qdrant, " | ||
"please instantiate it first and then pass to destination factory\n" | ||
'\nclient = QdrantClient(":memory:")\n' | ||
'dlt.pipeline(pipeline_name="...", destination=dlt.destinations.qdrant(client)' | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.