Skip to content

Commit

Permalink
added rowsaffected to executeStmt
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffreyaven committed May 6, 2024
1 parent 1e33a17 commit 8f1a0b5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
3 changes: 0 additions & 3 deletions tests/pystackql_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,6 @@ def setUpModule():
print("downloading aws provider for tests...")
res = PyStackQLTestsBase.stackql.executeStmt(registry_pull_aws_query)
print(res)
print("downloading awscc provider for tests...")
res = PyStackQLTestsBase.stackql.executeStmt(registry_pull_awscc_query)
print(res)
print("downloading google provider for tests...")
res = PyStackQLTestsBase.stackql.executeStmt(registry_pull_google_query)
print(res)
Expand Down
5 changes: 2 additions & 3 deletions tests/test_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ def get_custom_download_dir(platform_name):

registry_pull_google_query = "REGISTRY PULL google"
registry_pull_aws_query = "REGISTRY PULL aws"
registry_pull_awscc_query = "REGISTRY PULL awscc"
registry_pull_okta_query = "REGISTRY PULL okta"
registry_pull_github_query = "REGISTRY PULL github"

Expand All @@ -44,7 +43,7 @@ def registry_pull_resp_pattern(provider):

aws_query = f"""
SELECT
SPLIT_PART(CreationDate, '-', 1) as year, count(*) as num_buckets FROM aws.s3.buckets
SPLIT_PART(CreationDate, '-', 1) as year, count(*) as num_buckets FROM aws.s3_api.buckets
WHERE region = 'us-east-1'
GROUP BY year
"""
Expand All @@ -54,7 +53,7 @@ def registry_pull_resp_pattern(provider):
async_queries = [
f"""
SELECT region, COUNT(*) as num_functions
FROM awscc.lambda.functions
FROM aws.lambda.functions
WHERE region = '{region}'
"""
for region in regions
Expand Down

0 comments on commit 8f1a0b5

Please sign in to comment.