File tree 1 file changed +1
-4
lines changed
airbyte-cdk/bulk/toolkits/extract-jdbc/src/main/kotlin/io/airbyte/cdk/read
1 file changed +1
-4
lines changed Original file line number Diff line number Diff line change @@ -185,7 +185,6 @@ fun StreamPartitionReader.Input.querySpec(
185
185
checkpointUpperBound = primaryKeyUpperBound,
186
186
isOrdered,
187
187
limit,
188
- extraConjWhereClauses = arrayOf(LesserOrEqual (cursor, cursorUpperBound)),
189
188
)
190
189
is StreamPartitionReader .CursorIncrementalInput ->
191
190
querySpecForStreamPartitionReader(
@@ -205,7 +204,6 @@ private fun querySpecForStreamPartitionReader(
205
204
checkpointUpperBound : List <JsonNode >? ,
206
205
isOrdered : Boolean ,
207
206
limit : Long? ,
208
- vararg extraConjWhereClauses : WhereClauseNode ,
209
207
): SelectQuerySpec {
210
208
val selectColumns: List <Field > =
211
209
if (isOrdered) {
@@ -240,11 +238,10 @@ private fun querySpecForStreamPartitionReader(
240
238
} + listOf (lastLeaf),
241
239
)
242
240
}
243
- val whereClause = And (listOf (Or (lowerBoundDisj), Or (upperBoundDisj)) + extraConjWhereClauses)
244
241
return SelectQuerySpec (
245
242
SelectColumns (selectColumns),
246
243
From (stream.name, stream.namespace),
247
- Where (whereClause ),
244
+ Where (And ( Or (lowerBoundDisj), Or (upperBoundDisj)) ),
248
245
if (isOrdered) OrderBy (checkpointColumns) else NoOrderBy ,
249
246
if (limit == null ) NoLimit else Limit (limit),
250
247
)
You can’t perform that action at this time.
0 commit comments