You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@drill.apache.org by aleph-zero <gi...@git.apache.org> on 2015/11/04 00:57:31 UTC

[GitHub] drill pull request: DRILL-3791: JDBC Tests

GitHub user aleph-zero opened a pull request:

    https://github.com/apache/drill/pull/235

    DRILL-3791: JDBC Tests

    Adds tests for the JDBC plugin using MySQL and Derby.

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/aleph-zero/drill issues/JDBC-Testing

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/drill/pull/235.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #235
    
----
commit 41d02784b18f6bb25b922d63916978ad43cfa4d2
Author: aleph-zero <an...@primer.org>
Date:   2015-11-03T23:55:42Z

    DRILL-3791: JDBC Tests
    
    Adds tests for the JDBC plugin using MySQL and Derby.

----


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] drill pull request: DRILL-3791: JDBC Tests

Posted by jacques-n <gi...@git.apache.org>.
Github user jacques-n commented on a diff in the pull request:

    https://github.com/apache/drill/pull/235#discussion_r43903120
  
    --- Diff: contrib/storage-jdbc/src/test/resources/mysql-test-data.sql ---
    @@ -0,0 +1,53 @@
    +
    +set global time_zone = "+00:00";
    +
    +use drill_mysql_test;
    +
    +create table person (
    +  person_id       INT NOT NULL AUTO_INCREMENT PRIMARY KEY,
    +
    +  first_name      VARCHAR(255),
    +  last_name       VARCHAR(255),
    +  address         VARCHAR(255),
    +  city            VARCHAR(255),
    +  state           CHAR(2),
    +  zip             INT,
    +
    +  json            VARCHAR(255),
    +
    +  bigint_field    BIGINT,
    +  smallint_field  SMALLINT,
    +  numeric_field   NUMERIC(10, 2),
    +  boolean_field   BOOLEAN,
    +  double_field    DOUBLE,
    +  float_field     FLOAT,
    +  real_field      REAL,
    +
    +  time_field      TIME,
    +  timestamp_field TIMESTAMP,
    +  date_field      DATE,
    +  datetime_field  DATETIME
    --- End diff --
    
    If I recall correctly, we previously had issues with TEXT, BLOB, CLOB and BIT columns. Can you add these column types to the tests?


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] drill pull request: DRILL-3791: JDBC Tests

Posted by aleph-zero <gi...@git.apache.org>.
Github user aleph-zero closed the pull request at:

    https://github.com/apache/drill/pull/235


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] drill pull request: DRILL-3791: JDBC Tests

Posted by jacques-n <gi...@git.apache.org>.
Github user jacques-n commented on a diff in the pull request:

    https://github.com/apache/drill/pull/235#discussion_r43903198
  
    --- Diff: contrib/storage-jdbc/pom.xml ---
    @@ -69,8 +73,203 @@
           <artifactId>derbynet</artifactId>
           <version>10.11.1.1</version>
           <scope>test</scope>
    -    </dependency>    
    +    </dependency>
    +    <dependency>
    +      <groupId>mysql</groupId>
    +      <artifactId>mysql-connector-java</artifactId>
    +      <version>${mysql.connector.version}</version>
    +      <scope>test</scope>
    +    </dependency>
       </dependencies>
     
    -  
    +  <build>
    +    <testResources>
    +      <testResource>
    +        <directory>src/test/resources</directory>
    +        <filtering>true</filtering>
    +      </testResource>
    +    </testResources>
    +    <plugins>
    +      <plugin>
    +        <artifactId>maven-surefire-plugin</artifactId>
    +        <configuration>
    +          <excludes>
    +            <exclude>**/*</exclude>
    +          </excludes>
    +        </configuration>
    +      </plugin>
    +      <plugin>
    +        <groupId>org.apache.maven.plugins</groupId>
    +        <artifactId>maven-failsafe-plugin</artifactId>
    +        <version>2.18.1</version>
    +        <executions>
    +          <execution>
    +            <goals>
    +              <goal>integration-test</goal>
    +              <goal>verify</goal>
    +            </goals>
    +          </execution>
    +        </executions>
    +      </plugin>
    +      <plugin>
    --- End diff --
    
    Can you add some comments on some of these plugins?


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---