diff --git a/ingestion/src/metadata/sampler/sqlalchemy/sampler.py b/ingestion/src/metadata/sampler/sqlalchemy/sampler.py index 4d28f29f4a9..7a44cd44f77 100644 --- a/ingestion/src/metadata/sampler/sqlalchemy/sampler.py +++ b/ingestion/src/metadata/sampler/sqlalchemy/sampler.py @@ -153,7 +153,10 @@ class SQASampler(SamplerInterface, SQAInterfaceMixin): if self.sample_query: return self._rdn_sample_from_user_query() - if not self.sample_config.profileSample: + if not self.sample_config.profileSample or ( + self.sample_config.profileSampleType == ProfileSampleType.PERCENTAGE + and self.sample_config.profileSample == 100 + ): if self.partition_details: partitioned = self._partitioned_table() return partitioned.cte(f"{self.get_sampler_table_name()}_partitioned")