Trouble querying a hive database through dbeaver - hive

I am having trouble querying a hive database with dbeaver, using trino. I've connected it using the same settings as the admin - and he showed me a few examples of it working on his computer through a screenshare meeting. I have used sql before and want to get to know the databases right now - I am trying select * from database.schema.table_name (real names not used) - and getting the following error:
SQL Error [1]: [SQLITE_ERROR] SQL error or missing database (near ".": syntax error)

Related

Unable to access Snowflake Table

I have access to a snowflake table on the snowflake ui, but when I try to access the same table in r through the obdc query, I'm getting an error saying that I'm not authorized to access the table.
The weird thing is that I'm able to access the table in another query in r.
Any idea how to debug?
Error in new_result(connection#ptr, statement, immediate) :
nanodbc/nanodbc.cpp:1374: 42S02: SQL compilation error:
Object 'CIQSECURITY' does not exist or not authorized.

How to write LegacySQL in Excel ODBC connection to BigQuery?

I am trying to get data from a LegancySQL View in BigQuery using the Excel ODBC Simba Connection, but it is saying "Cannot reference a legacy SQL view in a standard SQL Query". However, I can't seem to be able to write it as LegacySQL. Adding in #legacySQL at the start of the query gives another error saying that legacySQL is not allowed, however, in their documentation it says it is used by default..?
What can I do?
Thanks,
Benji

Create table error with Apache Derby database: Syntax error: Encountered "AUTO_INCREMENT"

I've created a datasource in the Coldfusion Administrator interface for an embedded Apache Derby database. The queries, such as select, work fine. However, I can't find a way to create a new table in my database. I couldn't find interface for that, such as in phpmyAdmin, either. that. I've tried to create it by using a SQL query, but then builder complains about syntax errors:
Error Executing Database Query.
Syntax error: Encountered "AUTO_INCREMENT" at line 1, column 38
Screen shots:

Postgres database sync missing left sibling

I'm currently trying to compare/sync two databases, sync the changes from the test DB to the live DB. Both are running Postgres 9.1 and the test DB was a dump of the live one.
When I try a compare/sync with a program like "Navicat" or "SQL Management Studio", I get the error:
Error: ERROR: could not find left sibling of block 176 in index
"pg_attribute_relid_attnum_index"
I searched and googled, but I don't really understand what the problem is.
Also when I make the DB select in both databases:
SELECT * from pg_attributes
It doesn't show any problem. Any ideas? Thanks in advance!

BRIDGE command in Oracle SQL Developer

Occasionally I need to write queries accessing tables in both an MS Access database and an Oracle database. This can be done in MS Access, but Access limits the SQL I can use and has weird syntax.
The BRIDGE command in SQL Developer sounds perfect for this, but I'm having trouble getting it to work. When trying to execute this:
BRIDGE FallEnrollment2012 AS CentralServer(SELECT * FROM "Fall 2012 Enrollment 10-24-12")
SELECT * FROM FallEnrollment2012 WHERE ROWNUM <=10
I get this error message:
ORA-00900: invalid SQL statement
00900. 00000 - "invalid SQL statement"
*Cause:
*Action:
Between BRIDGE and FallEnrollment2012 a syntax error is indicated, but I can't figure out what the issue is. As far as I can tell from the examples I've looked at, it's correct as written. Can anyone tell me what I'm doing wrong?
This is a bug in SQL Developer 4.0 Beta1 & Beta2.
The workaround is to start SQL Developer , Tools > Migration > Scratch Editor .Then open the worksheet and run your BRIDGE command.
In this way the migration plugin is loaded which provides the BRIDGE functionality.
A fix is being worked on
Regards,
Dermot.