โ11-18-2025 05:45 PM - edited โ11-18-2025 05:50 PM
In our AWS Databricks environment, weโve encountered some behavior we donโt understand while performing the following operation.
When we clone a query file that already has content, a new file is created with the same name and โ(clone)โ added.
The problem is that the content of this cloned file is empty.
Currently, when a job is linked to this query, we receive the following error, which appears to be related:
Query text can not be empty: BAD_REQUEST: Query text can not be empty
We would appreciate it if you could share your thoughts or guidance regarding this issue.
โ11-18-2025 08:32 PM
Hi @kyeongmin_baek Just checking in, are you manually saving the original query? If you haven't yet, you might want to open the original query, attach a warehouse, and then click on save. Once you've done that, try cloning it again.
I followed these steps, and when I cloned it, the process worked perfectly without creating an empty clone. Let me know if that helps!
โ11-18-2025 08:32 PM
Hi @kyeongmin_baek Just checking in, are you manually saving the original query? If you haven't yet, you might want to open the original query, attach a warehouse, and then click on save. Once you've done that, try cloning it again.
I followed these steps, and when I cloned it, the process worked perfectly without creating an empty clone. Let me know if that helps!
โ11-18-2025 08:47 PM
Hello @KaushalVachhani ,
Thank you for your response. After checking, I confirmed that what you pointed out was indeed correct.
I had assumed the content was saved (I mistakenly thought Ctrl + S was working), and I didnโt realize there was a separate save button.
Iโve now confirmed that the cloning works properly, and I am running the Jobs again.
Thank you very much for your help!
โ11-18-2025 09:03 PM
Glad to help @kyeongmin_baek !
โ11-19-2025 07:53 AM
@kyeongmin_baek - There is no aut-save or CMD+S for Query as it get saved only once it is attached to a cluster AND 'SAVE' icon is used. However, it still stays in cache as unsaved in that 'query' window but cloning or other file operations may lose it unless saved explicitily.