Skip to content

mkwan01/trino-jtopen-mkwan

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Trino JTOpen connector Actions Status

This is a connector for Trino that allows you to use IBM JTOpen/JT400 Jdbc Connection to connect to a IBMi/Db2 for i/AS400 system.

What is Trino? Trino is a distributed SQL query engine designed to query large data sets distributed over one or more heterogeneous data sources.

Notice

Notice that this connector requires the connected database to be Db2 for IBMi and it requires the open source driver JTOpen/JT400. Writes have yet to be tested!

See DEVELOPMENT for information on development process.

Connection Configuration

Create new properties file like <catalog-name>.properties inside /etc/trino/catalog dir:

connector.name=jtopen
connection-url=jdbc:as400://ip:port/database;date format=iso;
connection-user=myuser
connection-password=mypassword

For a connection with SSL(Yet to be tested), use the following JDBC URL strings as connection-url:

connection-url=jdbc:jtopen://ip:port/database:sslConnection=true;

Notices:

  • The trailing semi-colon is required. Or it will throw SQLException Invalid database URL syntax.
  • This connector was originally based on the code from trino-db2 which is a connector for Db2 LUW using IBM connection/driver.

Configuration Properties

Property Name Description
jtopen.varchar-max-length max length of VARCHAR type in a CREATE TABLE or ALTER TABLE command. default is 32672

About

JTOpen IBMi Db2 Trino Connector

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 100.0%