dbeaver icon indicating copy to clipboard operation
dbeaver copied to clipboard

Apache Hive Default Keyword Case Should Be Set To UPPER

Open JesseFL opened this issue 3 years ago • 4 comments

Description

Apache Hive default keyword case is probably undefined. Auto-convert keyword case is not working. image

Apache Hive default keyword case should be set to UPPER.

DBeaver Version

Commuinity 22.2.0

Operating System

Windows 10

Database and driver

Apache Hive Cloudera Driver

Steps to reproduce

Connect to Apache Hive Type select [space] and observe the keyword case is not transformed to upper.

Additional context

Hive default keywords are UPPER and can be observed in the official language manual examples https://cwiki.apache.org/confluence/display/Hive/LanguageManual+Select

JesseFL avatar Sep 15 '22 11:09 JesseFL

Hello @JesseFL

I can't reproduce, unfortunately.

Can you please check this setting?

2022-09-16 18_07_44-Preferences

LonwoLonwo avatar Sep 16 '22 15:09 LonwoLonwo

@LonwoLonwo My setting looks like yours, Code Completion is set to Insert Case Default.

Can you please check this setting? Is your code formatter also set to default? image

Also I am not using the included Hive driver, I am using 3rd party Cloudera driver. Maybe that is related?

JesseFL avatar Sep 16 '22 18:09 JesseFL

I am using 3rd party Cloudera driver. Maybe that is related?

It can be because the driver returns info about the default keywords case.

Can you please provide a video of your issue?

LonwoLonwo avatar Sep 20 '22 07:09 LonwoLonwo

Here is a video. Should I open as a bug with Cloudera team? 2022-09-20_07-36-03

JesseFL avatar Sep 20 '22 11:09 JesseFL

I can't reproduce your issue with hive-jdbc-uber-2.6.5.0-292

5K3cBMuinS

Probably this is how the Cloudera driver works.

I think you can just set all auto-complete settings from "default" to "upper".

LonwoLonwo avatar Sep 22 '22 06:09 LonwoLonwo

Yes, I will. Thank you for checking into it.

JesseFL avatar Sep 22 '22 11:09 JesseFL

I have this issue now too. It was working up until a few days ago and I can't figure out what changed. All settings releated to formatting are set correctly but they do nothing anymore.

Donal-Goggin avatar Nov 09 '22 11:11 Donal-Goggin

Hello @Donal-Goggin

Probably your issue is described here: https://github.com/dbeaver/dbeaver/issues/18131

LonwoLonwo avatar Nov 10 '22 08:11 LonwoLonwo

Yes that looks like my exact problem. Thank you for linking it

Donal-Goggin avatar Nov 10 '22 09:11 Donal-Goggin