Fix: Remove min duration limit (#7627)

This commit is contained in:
Milan Bariya 2022-09-22 18:10:17 +05:30 committed by GitHub
parent 517e9a4aac
commit d1a3fa4928
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -44,9 +44,7 @@ class SnowflakeQueryParserSource(QueryParserSource, ABC):
def __init__(self, config: WorkflowSource, metadata_config: OpenMetadataConnection):
super().__init__(config, metadata_config)
# Snowflake does not allow retrieval of data older than 7 days
# Update start and end based on this
duration = min(self.source_config.queryLogDuration, 6)
duration = self.source_config.queryLogDuration
self.start, self.end = get_start_and_end(duration)
@classmethod