Skip to content

Commit

Permalink
chore(tap-suitql): Change year from filter in query builder
Browse files Browse the repository at this point in the history
  • Loading branch information
arthurferreira1 committed May 8, 2024
1 parent 88217a0 commit 8331a80
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tap_suiteql/query_builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def _build_where_statement(self):
self.stream.year_date_field
): # Filter added due to the limit of 100 thousand records that the Sensedata API returns # noqa:E501
where_clauses.append(
f"TO_CHAR({self.stream.year_date_field}, 'YYYY') >= 2023 and {self.stream.year_date_field} < ADD_MONTHS(SYSDATE, 3)" # noqa:E501
f"TO_CHAR({self.stream.year_date_field}, 'YYYY') >= 2024 and {self.stream.year_date_field} < ADD_MONTHS(SYSDATE, 3)" # noqa:E501
)

if self.stream.replication_key:
Expand Down

0 comments on commit 8331a80

Please sign in to comment.