@NIKHIL KUMAR - Thanks for the question and using MS Q&A platform.
The error message you are seeing indicates that there is a conflict between the ongoing data load and the optimization query. This is because the optimization query is trying to delete files that are being used by the ongoing data load.
To avoid this conflict, you can try the following options:
- Schedule the optimization query to run during off-peak hours when the data load is not happening. This will ensure that the optimization query does not interfere with the ongoing data load.
- Increase the number of files in the delta table. This will reduce the likelihood of the optimization query and the data load trying to access the same file at the same time.
- Use a different delta table for the optimization query. This will ensure that the optimization query does not interfere with the ongoing data load.
- Use a different storage account for the delta table. This will ensure that the optimization query does not interfere with the ongoing data load.
- Use a different cluster for the optimization query. This will ensure that the optimization query does not interfere with the ongoing data load.
I hope this helps! Let me know if you have any further questions.