sample-data-fixed (#4976)

This commit is contained in:
codingwithabhi 2022-05-16 20:31:50 +05:30 committed by GitHub
parent 74e5404fe0
commit 1f6901f1c9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -39,5 +39,8 @@ class AzuresqlSource(SQLSource):
raise InvalidSourceException(
f"Expected AzureSQLConnection, but got {connection}"
)
if config.sourceConfig.config.sampleDataQuery == "select * from {}.{} limit 50":
config.sourceConfig.config.sampleDataQuery = (
"select top 50 * from [{}].[{}]"
)
return cls(config, metadata_config)