Skip to content

Commit

Permalink
fix query
Browse files Browse the repository at this point in the history
  • Loading branch information
sir-sigurd committed Nov 8, 2024
1 parent 2afcfae commit 854e20d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lambdas/indexer/index.py
Original file line number Diff line number Diff line change
Expand Up @@ -493,8 +493,9 @@ def select_package_stats(bucket, manifest_key) -> Optional[dict]:
)
lambda_ = make_lambda_client()
q = f"""

Check warning on line 495 in lambdas/indexer/index.py

View check run for this annotation

Codecov / codecov/patch/informational

lambdas/indexer/index.py#L494-L495

Added lines #L494 - L495 were not covered by tests
SELECT COALESCE(SUM(size), 0) AS total_bytes,
COUNT(size) AS total_files FROM read_ndjson('{url}', columns={{size='UBIGINT'}}) obj
SELECT
COALESCE(SUM(size), 0) AS total_bytes,
COUNT(size) AS total_files FROM read_ndjson('{url}', columns={{size: 'UBIGINT'}}) obj
"""
resp = lambda_.invoke(

Check warning on line 500 in lambdas/indexer/index.py

View check run for this annotation

Codecov / codecov/patch/informational

lambdas/indexer/index.py#L500

Added line #L500 was not covered by tests
FunctionName=DUCKDB_SELECT_LAMBDA_ARN,
Expand Down

0 comments on commit 854e20d

Please sign in to comment.