Description
Run the following command with correct URI permissions:
INSERT OVERWRITE DIRECTORY '/tmp/test' select * FROM sample_07 LIMIT 100;
without "LOCAL" keyword, sentry will complain the following:
Error: Error while compiling statement: FAILED: SemanticException No valid privileges Required privileges for this query: Server=server1->URI=file:///tmp/test->action=*; (state=42000,code=40000)
However, after giving permission to "file:///tmp/test", query finished with data in "hdfs:///tmp/test", even though no permission to "hdfs:///tmp/test" was given.