I created a query layer in ArcGIS Pro from a feature hosted in our SDE that looks like so:
<SPAN class="keyword token">select</SPAN> <SPAN class="keyword token">distinct</SPAN> parcel_id<SPAN class="punctuation token">,</SPAN> primary_address<SPAN class="punctuation token">,</SPAN>owner<SPAN class="punctuation token">,</SPAN> shape <SPAN class="keyword token">from</SPAN> parcel<SPAN class="punctuation token">.</SPAN>parcels_master_mv <SPAN class="keyword token">where</SPAN> <SPAN class="punctuation token">(</SPAN>UPPER<SPAN class="punctuation token">(</SPAN>owner<SPAN class="punctuation token">)</SPAN> <SPAN class="operator token">LIKE</SPAN>
<SPAN class="string token">'MANATEE COUNTY%'</SPAN>
<SPAN class="operator token">OR</SPAN> owner <SPAN class="operator token">LIKE</SPAN> <SPAN class="string token">'MANATEE, COUNTY%'</SPAN>
<SPAN class="operator token">OR</SPAN> owner <SPAN class="operator token">LIKE</SPAN> <SPAN class="string token">'COUNTY OF MANATEE%'</SPAN>
<SPAN class="operator token">OR</SPAN> owner <SPAN class="operator token">LIKE</SPAN> <SPAN class="string token">'%CEMETERY%'</SPAN>
<SPAN class="operator token">OR</SPAN> owner <SPAN class="operator token">LIKE</SPAN> <SPAN class="string token">'%CEMATERY%'</SPAN>
<SPAN class="operator token">OR</SPAN> owner <SPAN class="operator token">LIKE</SPAN> <SPAN class="string token">'SIXA INV%'</SPAN>
<SPAN class="operator token">OR</SPAN> owner <SPAN class="operator token">LIKE</SPAN> <SPAN class="string token">'TIITF%'</SPAN> <SPAN class="punctuation token">)</SPAN>
<SPAN class="operator token">AND</SPAN> <SPAN class="punctuation token">(</SPAN>LUC <SPAN class="operator token">IN</SPAN> <SPAN class="punctuation token">(</SPAN><SPAN class="string token">'7600'</SPAN><SPAN class="punctuation token">,</SPAN><SPAN class="string token">'8086'</SPAN><SPAN class="punctuation token">,</SPAN><SPAN class="string token">'8600'</SPAN><SPAN class="punctuation token">,</SPAN><SPAN class="string token">'9400'</SPAN><SPAN class="punctuation token">,</SPAN><SPAN class="string token">'9500'</SPAN><SPAN class="punctuation token">)</SPAN><SPAN class="punctuation token">)</SPAN>
<SPAN class="operator token">AND</SPAN>
<SPAN class="punctuation token">(</SPAN> UPPER<SPAN class="punctuation token">(</SPAN>owner<SPAN class="punctuation token">)</SPAN> <SPAN class="operator token">NOT</SPAN> <SPAN class="operator token">LIKE</SPAN> <SPAN class="string token">'%MOSQUITO%'</SPAN>
<SPAN class="operator token">AND</SPAN> UPPER<SPAN class="punctuation token">(</SPAN>owner<SPAN class="punctuation token">)</SPAN> <SPAN class="operator token">NOT</SPAN> <SPAN class="operator token">LIKE</SPAN> <SPAN class="string token">'%PORT%'</SPAN>
<SPAN class="operator token">AND</SPAN> UPPER<SPAN class="punctuation token">(</SPAN>owner<SPAN class="punctuation token">)</SPAN> <SPAN class="operator token">NOT</SPAN> <SPAN class="operator token">LIKE</SPAN> <SPAN class="string token">'%AUTHORITY%'</SPAN>
<SPAN class="operator token">AND</SPAN> UPPER<SPAN class="punctuation token">(</SPAN>owner<SPAN class="punctuation token">)</SPAN> <SPAN class="operator token">NOT</SPAN> <SPAN class="operator token">LIKE</SPAN> <SPAN class="string token">'%HOUSING%'</SPAN>
<SPAN class="operator token">AND</SPAN> UPPER<SPAN class="punctuation token">(</SPAN>owner<SPAN class="punctuation token">)</SPAN> <SPAN class="operator token">NOT</SPAN> <SPAN class="operator token">LIKE</SPAN> <SPAN class="string token">'%HABITAT%'</SPAN>
<SPAN class="operator token">AND</SPAN> UPPER<SPAN class="punctuation token">(</SPAN>owner<SPAN class="punctuation token">)</SPAN> <SPAN class="operator token">NOT</SPAN> <SPAN class="operator token">LIKE</SPAN> <SPAN class="string token">'%AUDOBON%'</SPAN>
<SPAN class="operator token">AND</SPAN> UPPER<SPAN class="punctuation token">(</SPAN>owner<SPAN class="punctuation token">)</SPAN> <SPAN class="operator token">NOT</SPAN> <SPAN class="operator token">LIKE</SPAN> <SPAN class="string token">'%BANK%'</SPAN>
<SPAN class="operator token">AND</SPAN> UPPER<SPAN class="punctuation token">(</SPAN>owner<SPAN class="punctuation token">)</SPAN> <SPAN class="operator token">NOT</SPAN> <SPAN class="operator token">LIKE</SPAN> <SPAN class="string token">'%CHURCH%'</SPAN>
<SPAN class="operator token">AND</SPAN> UPPER<SPAN class="punctuation token">(</SPAN>owner<SPAN class="punctuation token">)</SPAN> <SPAN class="operator token">NOT</SPAN> <SPAN class="operator token">LIKE</SPAN> <SPAN class="string token">'%FAMILY%'</SPAN>
<SPAN class="operator token">AND</SPAN> UPPER<SPAN class="punctuation token">(</SPAN>owner<SPAN class="punctuation token">)</SPAN> <SPAN class="operator token">NOT</SPAN> <SPAN class="operator token">LIKE</SPAN> <SPAN class="string token">'%FARM%'</SPAN><SPAN class="punctuation token">)</SPAN>
<SPAN class="keyword token">order</SPAN> <SPAN class="keyword token">by</SPAN> parcel_id <SPAN class="keyword token">desc</SPAN><SPAN class="line-numbers-rows"><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN></SPAN>
Why I believe there's a bug is because when I open the attribute table and start scrolling, I get an error a couple rows in that says "Failed to retrieve a page of rows." After I select okay, the attribute table crashes - and it does so at the same point every time I reopen the table.
When I remove the "order by" command, I can scroll freely though the attribute table without error.
It seems to be very similar to this bug that was reported resolved with Pro 2.3: What does "Failed to retrieve a page of rows" imply?