ethan_parmer
New Contributor III

Hi @volodymyr_b — I think your theory is right, and your own log line backs it up.

SQL Server doesn’t sort uniqueidentifier the way the string sorts. It compares the last 6-byte group first (the FFE14F608876 part), then works backward through the other groups. Look at the upper bound in your snapshot filter: 38C5A9C6-…-8A7F-FFE14F608876. That last group is close to the top of the range, which is exactly what you’d expect if the connector computed MAX(Id) using GUID ordering. But the predicate it applies is a string comparison (RPAD(Id, 36, ' ') <= '38C5…'), so only IDs that start with roughly 0–38… make it through. With splitCount=1 and no “dropped” rows, the pipeline thinks it read everything.

You can confirm it on the source without changing anything:

 
sql
SELECT
  MAX(Id)                         AS max_as_guid,
  MAX(CONVERT(char(36), Id))      AS max_as_string,
  SUM(CASE WHEN CONVERT(char(36), Id) <= '38C5A9C6-D111-4182-8A7F-FFE14F608876'
           THEN 1 ELSE 0 END)     AS rows_kept_by_string_filter
FROM dbo.YourTable;

If max_as_guid matches the boundary in your log and rows_kept_by_string_filter comes back as 364, that proves it.

On workarounds: I’m not aware of a documented setting to change the split column for the SQL Server connector. Until it’s fixed:

  • Treat it as a connector bug. If you have a paid workspace, open a support ticket with the query above and the log lines. That’s the fastest route to a fix.
  • Don’t trust the snapshot for GUID-keyed tables. A quick COUNT(*) check between source and target after each full refresh would catch it.
  • As a stopgap, pull the table through Lakehouse Federation or JDBC into a separate table and reconcile against that.

A couple of questions that would help others reproduce it: are you using CDC or Change Tracking, and does a table with an INT/BIGINT key in the same pipeline come through complete?

Ethan