[]
When switching to SQL View, all existing objects in Relationships, fields in the Fields panel, and any Custom SQL Tables that have been added are deleted. The field list is regenerated based on the new SQL query, and the dataset can no longer use the visual relationship editor, future modifications must be made directly in SQL.

Open the Admin Portal.
Navigate to Configuration → Dataset.
Set Allow switching to SQL View to True.
Click Save Changes.