Skip to content

Commit

Permalink
comment
Browse files Browse the repository at this point in the history
  • Loading branch information
Colin Ho authored and Colin Ho committed Oct 23, 2024
1 parent 579e359 commit 86e1f62
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion daft/sql/sql_scan.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,8 @@ def _get_num_rows(self) -> int:

def _attempt_partition_bounds_read(self, num_scan_tasks: int) -> tuple[Any, PartitionBoundStrategy]:
try:
# Try to get percentiles using percentile_cont
# Try to get percentiles using percentile_disc.
# Favor percentile_disc over percentile_cont because we want exact values to do <= and >= comparisons.
percentiles = [i / num_scan_tasks for i in range(num_scan_tasks + 1)]
# Use the OVER clause for SQL Server
over_clause = "OVER ()" if self.conn.dialect in ["mssql", "tsql"] else ""
Expand Down

0 comments on commit 86e1f62

Please sign in to comment.