fix connection kwargs error in profiler (#12181)

This commit is contained in:
Ayush Shah 2023-06-27 19:44:53 +05:30 committed by GitHub
parent a6306e1ca4
commit 81a152140c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -89,6 +89,7 @@ class PandasInterfaceMixin:
"""
returns sampled ometa dataframes
"""
connection_args = service_connection_config.configSource.securityConfig
data = fetch_dataframe(
config_source=service_connection_config.configSource,
client=client,
@ -96,6 +97,7 @@ class PandasInterfaceMixin:
key=table.name.__root__, bucket_name=table.databaseSchema.name
),
is_profiler=True,
connection_kwargs=connection_args,
)
if data:
random.shuffle(data)