In the DATABRICKS DELTA databases I have information about different user groups in the same tables since the user groups change. I mean that all users in all groups use the same table.
Users access data through a single view.
I would like the data to be filtered depending on the user accessing the view. Do you know how I can do it? This would be an example (any_object would be the command to retrieve the value of the current user that uses the view or the user group to which it belongs):
%sql
CREATE VIEW db.table AS SELECT * FROM WHERE column1 = any_object.username OR any_object.groupname
it's possible this?
Thanks!!!