Skip to content

Commit f15204b

Browse files
committed
fix: no ORDER BY on ordinal column
1 parent 6df3609 commit f15204b

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

src/ops/sources/postgres.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -425,10 +425,6 @@ impl SourceExecutor for PostgresSourceExecutor {
425425
if let Some(where_clause) = &self.filter {
426426
write!(&mut query, " WHERE {}", where_clause)?;
427427
}
428-
// Add ordering by ordinal column if specified
429-
if let Some(ord_schema) = &self.table_schema.ordinal_field_schema {
430-
write!(&mut query, " ORDER BY \"{}\"", ord_schema.schema.name)?;
431-
}
432428

433429
let stream = try_stream! {
434430
let mut rows = sqlx::query(&query).fetch(&self.db_pool);

0 commit comments

Comments
 (0)