SAP HANA JDBC Catalog
Run catalog SQL with a warehouse SQL user that can manage catalogs and access the source. Ensure network access from the warehouse to metadata, storage, and source endpoints. For connector deployment, host files, JVM settings, or service configuration changes, contact VeloDB Cloud support.
The JDBC Catalog supports connecting to the SAP HANA database through the standard JDBC interface. This document describes how to configure the SAP HANA database connection.
For an overview of the JDBC Catalog, please refer to: JDBC Catalog Overview
Usage notes
To connect to the SAP HANA database, you need
-
SAP HANA 2.0 or higher.
-
The JDBC driver for the SAP HANA database, which you can download from the Maven Repository. It is recommended to use version ngdbc 2.4.51 or above.
-
Network access from the warehouse to the source server, whose default port is 30015.
Connect to SAP HANA
CREATE CATALOG saphana_catalog PROPERTIES (
'type' = 'jdbc',
'user' = 'username',
'password' = 'pwd',
'jdbc_url' = 'jdbc:sap://Hostname:Port/?optionalparameters',
'driver_url' = 'ngdbc-2.4.51.jar',
'driver_class' = 'com.sap.db.jdbc.Driver'
)
For more information on the JDBC URL format and parameters supported by the SAP HANA JDBC driver, please refer to SAP HANA.
Hierarchical mapping
When mapping SAP HANA, the Database in VeloDB Cloud corresponds to a Schema under the specified DataBase in SAP HANA (the "DATABASE" in the jdbc_url parameter). The Table under the Database in VeloDB Cloud corresponds to the Tables under the Schema in SAP HANA. The mapping relationship is as follows:
| VeloDB Cloud | SAP HANA |
|---|---|
| Catalog | Database |
| Database | Schema |
| Table | Table |
Column type mapping
| SAP HANA Type | VeloDB Cloud Type | Comment |
|---|---|---|
| boolean | boolean | |
| tinyint | tinyint | |
| smallint | smallint | |
| integer | int | |
| bigint | bigint | |
| smalldecimal(P, S) | decimal(P, S) or double or string | If precision is not specified, the double type is used. If the precision exceeds the maximum precision supported by VeloDB Cloud, the string type is used. |
| decimal(P, S) | decimal(P, S) or double or string | Same as above. |
| real | float | |
| double | double | |
| date | date | |
| time | string | |
| timestamp(S) | datetime(S) | |
| seconddate | datetime(S) | |
| varchar | string | |
| nvarchar | string | |
| alphanum | string | |
| shorttext | string | |
| char(N) | char(N) | |
| nchar(N) | char(N) | |
| other | UNSUPPORTED |