fix: default to raw dataset (#20192)

This commit is contained in:
Teddy 2025-03-11 15:52:39 -07:00 committed by GitHub
parent e0a38e1146
commit 1a18c7d7f8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -153,7 +153,10 @@ class SQASampler(SamplerInterface, SQAInterfaceMixin):
if self.sample_query: if self.sample_query:
return self._rdn_sample_from_user_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: if self.partition_details:
partitioned = self._partitioned_table() partitioned = self._partitioned_table()
return partitioned.cte(f"{self.get_sampler_table_name()}_partitioned") return partitioned.cte(f"{self.get_sampler_table_name()}_partitioned")