mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2026-01-06 04:26:57 +00:00
Move pandas top level import (#13926)
This commit is contained in:
parent
cefe22247b
commit
4b625f7ba5
@ -17,8 +17,6 @@ from datetime import datetime
|
||||
from functools import singledispatch
|
||||
from io import BytesIO
|
||||
|
||||
import pandas as pd
|
||||
|
||||
from metadata.clients.aws_client import AWSClient
|
||||
from metadata.generated.schema.entity.data.table import Table, TableData
|
||||
from metadata.generated.schema.security.credentials.awsCredentials import AWSCredentials
|
||||
@ -44,6 +42,8 @@ def upload_sample_data(data: TableData, profiler_interface: ProfilerInterface) -
|
||||
"""
|
||||
Upload Sample data to storage config
|
||||
"""
|
||||
import pandas as pd # pylint: disable=import-outside-toplevel
|
||||
|
||||
try:
|
||||
sample_storage_config = profiler_interface.storage_config
|
||||
if not sample_storage_config:
|
||||
|
||||
@ -60,7 +60,7 @@ class AthenaCliTest(CliCommonDB.TestSuite):
|
||||
return 7
|
||||
|
||||
def inserted_rows_count(self) -> int:
|
||||
return 100
|
||||
return 50
|
||||
|
||||
def view_column_lineage_count(self) -> int:
|
||||
pass
|
||||
|
||||
@ -58,7 +58,7 @@ class DatalakeCliTest(CliCommonDB.TestSuite):
|
||||
return 7
|
||||
|
||||
def inserted_rows_count(self) -> int:
|
||||
return 100
|
||||
return 50
|
||||
|
||||
def view_column_lineage_count(self) -> int:
|
||||
pass
|
||||
|
||||
@ -83,7 +83,7 @@ class RedshiftCliTest(CliCommonDB.TestSuite, SQACommonMethods):
|
||||
return 5
|
||||
|
||||
def inserted_rows_count(self) -> int:
|
||||
return 100
|
||||
return 50
|
||||
|
||||
def view_column_lineage_count(self) -> int:
|
||||
"""
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user