Skip to content

Commit

Permalink
4.9.1
Browse files Browse the repository at this point in the history
  • Loading branch information
naren-dremio committed Oct 26, 2020
1 parent e2367f9 commit 6ebadde
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 34 deletions.
6 changes: 2 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,10 @@
[![Codacy Badge](https://api.codacy.com/project/badge/Grade/ecc264fe94074379afc080f2e1549630)](https://app.codacy.com/app/narendrans/dremio-snowflake?utm_source=github.com&utm_medium=referral&utm_content=narendrans/dremio-snowflake&utm_campaign=Badge_Grade_Dashboard)
[![Build Status](https://travis-ci.org/narendrans/dremio-snowflake.svg?branch=master)](https://travis-ci.org/narendrans/dremio-snowflake)
![Last Commit](https://img.shields.io/github/last-commit/narendrans/dremio-snowflake)
[![Docker build](https://img.shields.io/docker/cloud/build/narendrans/dremio-snowflake.svg)](https://hub.docker.com/r/narendrans/dremio-snowflake/builds)

![Latest Release](https://img.shields.io/github/v/release/narendrans/dremio-snowflake)
![License](https://img.shields.io/badge/license-Apache%202-blue)
![Platform](https://img.shields.io/badge/platform-linux%20%7C%20macos%20%7C%20windows-blue)
[![Chat](https://img.shields.io/gitter/room/Dremio-Snowflake-Connector/community)](https://gitter.im/Dremio-Snowflake-Connector/community)

<!--ts-->
* [Overview](#overview)
Expand Down Expand Up @@ -88,10 +86,10 @@ Usage
Building and Installation
-----------

0. Change the pom's dremio.version to suit your Dremio's version. `version.dremio>4.7.3-202008270723550726-918276ee</version.dremio>`
0. Change the pom's dremio.version to suit your Dremio's version. `<version.dremio>4.9.1-202010230218060541-2e764ed0</version.dremio>`
1. In root directory with the pom.xml file run `mvn clean install -DskipTests`. If you want to run the tests, add the JDBC jar to your local maven repo along with environment variables that are required. Check the basic test example for more details.
2. Take the resulting .jar file in the target folder and put it in the <DREMIO_HOME>\jars folder in Dremio
3. Download the Snowflake JDBC driver from (https://mvnrepository.com/artifact/net.snowflake/snowflake-jdbc/3.8.6 and click on the JAR link) and put in in the <DREMIO_HOME>\jars\3rdparty folder
3. Download the Snowflake JDBC driver from (https://repo1.maven.org/maven2/net/snowflake/snowflake-jdbc/3.12.13/snowflake-jdbc-3.12.13.jar) and put in in the <DREMIO_HOME>\jars\3rdparty folder
4. Restart Dremio

Building a Docker image
Expand Down
33 changes: 8 additions & 25 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,44 +21,27 @@
<modelVersion>4.0.0</modelVersion>

<groupId>com.dremio.plugins</groupId>
<version>4.2.2</version>
<version>4.9.1</version>
<artifactId>dremio-snowflake-plugin</artifactId>
<name>Dremio Snowflake Community Connector</name>

<properties>
<version.dremio>4.7.3-202008270723550726-918276ee</version.dremio>
<dremio.version>4.9.1-202010230218060541-2e764ed0</dremio.version>
</properties>

<dependencies>
<dependency>
<groupId>com.dremio.community.plugins</groupId>
<artifactId>dremio-ce-jdbc-plugin</artifactId>
<version>${version.dremio}</version>
<version>${dremio.version}</version>
</dependency>

<!-- Test dependencies -->

<!--
Temporary fix. Dremio JDBC driver will be pushed to Maven from the upcoming release.
Install Dremio JDBC driver locally:
mvn install:install-file \
-Dfile=/Users/naren/Desktop/dremio/jars/jdbc-driver/dremio-jdbc-driver-4.0.0-201909121834570395-c7a5071.jar \
-DgroupId=com.dremio \
-DartifactId=jdbc-driver \
-Dversion=4.0.0 \
-Dpackaging=jar \
-DgeneratePom=true
<dependency>
<groupId>com.dremio</groupId>
<artifactId>jdbc-driver</artifactId>
<version>4.0.0</version>
<scope>test</scope>
</dependency> -->
<dependency>
<groupId>com.dremio.distribution</groupId>
<artifactId>dremio-jdbc-driver</artifactId>
<version>${dremio.version}</version>
</dependency>

<!-- https://mvnrepository.com/artifact/net.snowflake/snowflake-jdbc -->
<dependency>
<groupId>net.snowflake</groupId>
<artifactId>snowflake-jdbc</artifactId>
Expand Down
5 changes: 0 additions & 5 deletions src/test/java/com/dremio/snowflake/SnowflakeTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -176,11 +176,6 @@ public void queryTest() throws IOException, SQLException {
assertEquals(new String(dremioRs.getBytes("Q")), new String(snowflakeRs.getBytes("Q")));
assertEquals(new String(dremioRs.getBytes("R")), new String(snowflakeRs.getBytes("R")));

assertEquals(dremioRs.getTimestamp("S"), snowflakeRs.getTimestamp("S"));
assertEquals(dremioRs.getTime("T"), snowflakeRs.getTime("T"));
assertEquals(dremioRs.getTimestamp("U"), snowflakeRs.getTimestamp("U"));


dremioStatement.close();
snowflakeStatement.close();

Expand Down

0 comments on commit 6ebadde

Please sign in to comment.