steven_wang
11/17/2023, 11:10 PMedgar_ramirez_mondragon
11/17/2023, 11:35 PMsteven_wang
11/18/2023, 12:14 AMedgar_ramirez_mondragon
11/18/2023, 12:15 AMIncremental state has been updated at ...
?steven_wang
11/18/2023, 12:30 AMsteven_wang
11/18/2023, 12:32 AMedgar_ramirez_mondragon
11/18/2023, 3:07 AMsteven_wang
11/18/2023, 5:16 AMsteven_wang
11/18/2023, 5:18 AMedgar_ramirez_mondragon
11/18/2023, 4:51 PMHow would I configure meltano/singer to assume the data is sorted?It's hardcoded in the tap implementation. The tap developer has to explicitly set the
is_sorted
property of the stream class to `True`: https://sdk.meltano.com/en/latest/classes/singer_sdk.Stream.html#singer_sdk.Stream.is_sorted.
The tap developer can decide on a case-by-case basis, if the stream's records are sorted by the replication key, on determine that dynamically. For example, there was a recent change in the Singer SDK that benefits all derived SQL taps: https://github.com/meltano/sdk/pull/1951/files#diff-61b20de8a12c7c91dfc4de62be5a230d2b4b1b2dd688628705554dc63a9490b6edgar_ramirez_mondragon
11/18/2023, 5:02 PMsortKey
after they determine the replication key: https://github.com/sehnem/tap-shopify/blob/4254766699fc53f5522ce28d6028e50918f380ee/tap_shopify/tap.py#L172