Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for Sybase ASE + Informix #364

Open
wants to merge 7 commits into
base: main
Choose a base branch
from

Conversation

anasY2
Copy link

@anasY2 anasY2 commented Sep 26, 2023

Added tpcc and ycsb support for sybase ASE and Informix. pom.xml has a new profile named arcion which will deploy a jar file that contains all the database drivers.

@apavlo
Copy link
Member

apavlo commented Oct 19, 2023

@anasY2 What is the meaning for "arcion"?

Copy link
Member

@apavlo apavlo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for sending this. Can you address the comments? It's not clear why you are bringing in dependencies for Snowflake/MongoDB?

Comment on lines +52 to +125
<profile>
<id>arcion</id>
<repositories>
<repository>
<id>jumpmind</id>
<name>jumpmind</name>
<url>https://maven.jumpmind.com/repo</url>
</repository>
</repositories>
<properties>
<classifier>arcion</classifier>
</properties>
<dependencies>
<dependency>
<groupId>org.xerial</groupId>
<artifactId>sqlite-jdbc</artifactId>
<version>3.36.0.3</version>
</dependency>
<dependency>
<groupId>com.ibm.db2</groupId>
<artifactId>jcc</artifactId>
<version>11.5.8.0</version>
</dependency>
<dependency>
<groupId>org.postgresql</groupId>
<artifactId>postgresql</artifactId>
<version>42.4.0</version>
</dependency>
<!-- https://mvnrepository.com/artifact/net.snowflake/snowflake-jdbc -->
<dependency>
<groupId>net.snowflake</groupId>
<artifactId>snowflake-jdbc</artifactId>
<version>3.13.30</version>
</dependency>
<dependency>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
<version>8.0.29</version>
</dependency>
<dependency>
<groupId>org.mariadb.jdbc</groupId>
<artifactId>mariadb-java-client</artifactId>
<version>2.7.8</version>
</dependency>
<dependency>
<groupId>com.oracle.database.jdbc</groupId>
<artifactId>ojdbc8</artifactId>
<version>21.1.0.0</version>
</dependency>
<dependency>
<groupId>com.microsoft.sqlserver</groupId>
<artifactId>mssql-jdbc</artifactId>
<version>11.2.3.jre17</version>
</dependency>
<!-- https://mvnrepository.com/artifact/com.ibm.informix/jdbc -->
<dependency>
<groupId>com.ibm.informix</groupId>
<artifactId>jdbc</artifactId>
<version>4.50.3</version>
</dependency>
<!-- https://mvnrepository.com/artifact/org.mongodb/bson -->
<dependency>
<groupId>org.mongodb</groupId>
<artifactId>bson</artifactId>
<version>3.8.0</version>
</dependency>
<!-- https://mvnrepository.com/artifact/jdbc.sybase/jconn4 -->
<dependency>
<groupId>jdbc.sybase</groupId>
<artifactId>jconn4</artifactId>
<version>16.0</version>
</dependency>
</dependencies>
</profile>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why do we need to bring in Snowflake / MongoDB / etc drivers? What is the point of this addition?

Comment on lines +180 to +193
<profile>
<id>snowflake</id>
<properties>
<classifier>snowflake</classifier>
</properties>
<dependencies>
<!-- https://mvnrepository.com/artifact/net.snowflake/snowflake-jdbc -->
<dependency>
<groupId>net.snowflake</groupId>
<artifactId>snowflake-jdbc</artifactId>
<version>3.13.30</version>
</dependency>
</dependencies>
</profile>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are you adding support for Snowflake? If yes, can you submit that as a separate PR?

Comment on lines +298 to +302
<dependency>
<groupId>org.mongodb</groupId>
<artifactId>bson</artifactId>
<version>3.8.0</version>
</dependency>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are you adding support for MongoDB now too?

Comment on lines +260 to +264
} catch (java.lang.InstantiationException ex) {
throw new RuntimeException("Failed to initialize JDBC driver '" + this.driverClass + "'", ex);
} catch (java.lang.IllegalAccessException ex) {
throw new RuntimeException("Failed to initialize JDBC driver '" + this.driverClass + "'", ex);
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Rewrite into a single block:

} catch (java.lang.InstantiationException | java.lang.IllegalAccessException ex) {

@apavlo apavlo changed the title Arcionlabs Support for Sybase ASE + Informix Oct 19, 2023
@anasY2
Copy link
Author

anasY2 commented Oct 26, 2023

@anasY2 What is the meaning for "arcion"?

Its a profile name. Instead of downloading drivers separately, it will do it all at once so you do not need to build everytime you wanted to run workload for a separate database.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants