I am using the compare models functionality to compare the DM model against the database. For views, the view definition most of the times differs.
The source of the view from the DM model seems to be retrieved from de XML definition of the view. This text is 1:1 taken over from field userDefinedSQL. The format in this field is not always the same as how the database imported view is formatted.
The compare should take place in a uniformed way based on data from the DM model. The column list should be taken as visible in Query Builder, as well as the select statement. And the formatting of the statement should be the same as the formatting of the database imported view.