An Apache Spark-based analytics platform optimized for Azure.
Hello,
In order to maintain the ordering, you could create a view or a materialized view on the employee table that includes an ORDER BY clause :
CREATE VIEW ordered_employee AS
SELECT id, name, city
FROM employee
WHERE name IS NOT NULL
ORDER BY id;
Otherwise if you have control over the API or middleware that clients use to access the Databricks SQL warehouse, you could implement a layer that automatically adds an ORDER BY clause to incoming queries.
Also you could create a stored procedure that clients can call instead of querying.
Hope this helps
If this answer helped you, please accept it, so others can benefit from it too.
Regards