dave-csc opened a new issue, #3792:
URL: https://github.com/apache/hop/issues/3792

   ### Apache Hop version?
   
   2.8.0
   
   ### Java version?
   
   openjdk version "21.0.2" 2024-01-16
   
   ### Operating system
   
   Linux
   
   ### What happened?
   
   In Database Explorer you can't get the number of rows from an Oracle 
database table, the error reported is (I used generic `<schema>` and `<table>` 
as their names):
   
   ```
   InvocationTargetException: Couldn't get a result because of an error 
:org.apache.hop.core.exception.HopDatabaseException: 
   An error occurred executing SQL: 
   select count(*) FROM "<schema>.<table>"
   ORA-00942: table or view does not exist
   
   https://docs.oracle.com/error-help/db/ora-00942/
   
   Root cause: OracleDatabaseException: ORA-00942: table or view does not exist
   ```
   
   That's because both user/schema and the table name have been enclosed 
together in double quotes (the same query in an Oracle client fails with the 
same reason). The double quotes enclosure should be removed to make the query 
work (or alternatively, user/schema and table name should be enclosed in double 
quotes separately, e.g. `"<schema>"."<table>"`).
   
   For additional info: the row preview buttons are working as expected instead.
   
   ### Issue Priority
   
   Priority: 2
   
   ### Issue Component
   
   Component: Hop Gui


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to