@koolay, for your $scratch tables you Dremio is automatically formatting files into physical datasets when you issue a query against them. Once they are formatted, they are added to the catalog and visible in INFORMATION_SCHEMA. Before that, they are just files in the distributed file system.
Hi all, sorry for the delay…
There is a SQL syntax for formating in input or output (download the code from dremio-oss and search for “TABLE(” or “STORE AS”.
Here is description of available options I found :