How to disable automatically adding "database name" from autocomplete?
I am using Snowflake with Datagrip, in snowflake I have RAW, DEV, PROD database
I think since the 2024 or 2023 new version when I type select * from prod.
it will automatically suggest to write in to
select *
from "Snowflake".prod.;
can we stop this behaviour and just write
select *
from prod.xxxxx. ?
thanks,
请先登录再写评论。
Please ensure you don't have Qualify Objects WIth - Database radio button selected in your code completion settings in File | Settings | Editor | General | Code Completion
Hey, I have the same issue, but it happens only in Live templates. Setting Qualify object with Database as well as Qualify object in Live templates to “Never” didn't help.
Hi, it's DataGrip 2024.2.2
It happens in both Trino (io.trino.jdbc.TrinoDriver ver 425) and Redshift (com.amazon.redshift.jdbc.Driver ver 2.1.0.28)
I tested live templates in both data sources with identical setup and couldn't reproduce it. May I know what are your settings in File | Settings | Editor | General | Code Completion starting from the SQL qualify section , please include a screenshot. Also, when you type your live template, do you observe the same database qualify in the preview or is it only shown after you hit enter and it auto completes in the editor?
Hi, here are the settings:
The database completion happens when I put the period after entering schema name. But it doesn't happen if I use completion with Tab to complete the schema name. The issue appears only if I enter full schema name on my own and put a period.
I recorded a short video of the behavior: https://drive.google.com/file/d/186PfwL0wmVqSDekJcHRy0X3wR3THBfkR/view?usp=sharing (you'll need to request access to view it, my company forbids sharing stuff publicly)
https://youtrack.jetbrains.com/issue/DBE-21988/Code-completion-ignores-scope-Qualify-Objects-In-Live-templates
Hi, thank you!
Setting Basic completion to Never solved the issue.
And here's a screenshot of the template
Please follow the youtrack issue to stay updated on the progress.