LantaoJin commented on pull request #28901: URL: https://github.com/apache/spark/pull/28901#issuecomment-654224633
> If I write the output to a temp location and then create a temp view to read from this temp location, ... Ah, I knew your meaning now, using `CREATE TEMP VIEW USING` command. I think it's still tricky. First, platform needs to provide the "temp" location to storage users' data which are able to clean all untracked files. It's hard to do that. Second, "CREATE TEMP VIEW USING" command lack the view definition. In most cases, immutable `temporary table` is enough. After the temporary created with `AS SELECT ...`, less insert/overwrite operations will perform on it. `CREATE TEMP VIEW USING` command without `AS SELECT`, a good practise seems to `insert/overwrite` it then. What's more, the storage folder permission is still a problem in a ACL enabled platform (even Spark code didn't import ACL, many companies build their platforms similar with Databricks Runtime) ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
