Closed gobiviswanath closed 3 years ago
We need more information on this commit and if this actually solves the underlying issue. This commit blindly looks for Delta paths, sets a location, and would make all Delta tables un-managed tables which is a change in the behavior for a users table. A behavior change should be taken very carefully.
You can try to update your PR or submit a new one with more information.
Hi Miklos, I analysed delta behaviour. You can create a delta as managed table only at the first time. Starting second time, Every time you migrate it will be external table.
as for evaluation logic
a) I consider describing every table and access type of table by doing a describe. But it is extra API call. Overhead considering if the tables are too much/ b) The current loop enters by evaluating ddl language generated by previous "show create statement" and process only managed delta tables. Then do en extended describe and append location. It does describe call only it it is necessary which is more efficient approach I thought.
added a fix for delta hadle