Skip to content

Commit

Permalink
#148: Adapt to Exasol 8 (#149)
Browse files Browse the repository at this point in the history
  • Loading branch information
kaklakariada authored Dec 13, 2023
1 parent efdccc4 commit 14c5665
Show file tree
Hide file tree
Showing 17 changed files with 275 additions and 119 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/ci-build.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

23 changes: 19 additions & 4 deletions .github/workflows/dependencies_check.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
"editor.formatOnSave": true,
"editor.codeActionsOnSave": {
"source.organizeImports": true,
"source.generate.finalModifiers": true,
"source.fixAll": true
"source.organizeImports": "explicit",
"source.generate.finalModifiers": "explicit",
"source.fixAll": "explicit"
},
"java.codeGeneration.useBlocks": true,
"java.saveActions.organizeImports": true,
Expand All @@ -18,4 +18,4 @@
"connectionId": "exasol",
"projectKey": "com.exasol:virtual-schema-common-document-files"
}
}
}
39 changes: 20 additions & 19 deletions dependencies.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions doc/changes/changelog.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

60 changes: 60 additions & 0 deletions doc/changes/changes_8.0.0.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
# Virtual Schema for Document Data in Files 8.0.0, released 2023-12-13

Code name: Support Exasol 8

## Summary

This release upgrades to `virtual-schema-common-document:10.1.0` which adds support for Exasol 8. This brings the following changes for virtual schemas:

### Remove support for `TIMESTAMP WITH LOCAL TIME ZONE`

This release adds support for Exasol 8 by removing support for data type `TIMESTAMP WITH LOCAL TIME ZONE`. This type caused problems with the stricter type checks enabled by default in Exasol, causing pushdown queries for document based virtual schemas to fail with the following error:

```
Data type mismatch in column number 5 (1-indexed).Expected TIMESTAMP(3) WITH LOCAL TIME ZONE, but got TIMESTAMP(3).
```

We fixed this error by removing support `TIMESTAMP WITH LOCAL TIME ZONE` completely. This is a breaking change, so we updated the version to 8.0.0.

### Support `ALTER VIRTUAL SCHEMA SET`

This release adds support for `ALTER VIRTUAL SCHEMA SET`. This will allow changing properties like `MAPPING` of document based virtual schemas without dropping and re-creating the virtual schema:

```sql
-- Update EDML mapping of the virtual schema
ALTER VIRTUAL SCHEMA MY_VIRTUAL_SCHEMA SET MAPPING = '...';

-- Enable remote logging or change the log level
ALTER VIRTUAL SCHEMA MY_VIRTUAL_SCHEMA SET DEBUG_ADDRESS = 'host:3000' LOG_LEVEL = 'FINEST';
ALTER VIRTUAL SCHEMA MY_VIRTUAL_SCHEMA SET LOG_LEVEL = 'INFO';
```

See the [documentation for `ALTER SCHEMA`](https://docs.exasol.com/db/latest/sql/alter_schema.htm) for details.

## Features

* #148: Added support for Exasol version 8

## Dependency Updates

### Compile Dependency Updates

* Updated `com.exasol:virtual-schema-common-document:9.4.3` to `10.1.0`
* Updated `io.deephaven:deephaven-csv:0.12.0` to `0.14.0`

### Test Dependency Updates

* Updated `com.exasol:hamcrest-resultset-matcher:1.6.1` to `1.6.3`
* Updated `com.exasol:virtual-schema-common-document:9.4.3` to `10.1.0`
* Updated `nl.jqno.equalsverifier:equalsverifier:3.15.2` to `3.15.4`
* Updated `org.apache.commons:commons-text:1.10.0` to `1.11.0`
* Updated `org.junit.jupiter:junit-jupiter-params:5.10.0` to `5.10.1`
* Updated `org.mockito:mockito-junit-jupiter:5.6.0` to `5.8.0`

### Plugin Dependency Updates

* Updated `com.exasol:project-keeper-maven-plugin:2.9.13` to `2.9.17`
* Added `org.apache.maven.plugins:maven-enforcer-plugin:3.4.1`
* Updated `org.apache.maven.plugins:maven-javadoc-plugin:3.6.0` to `3.6.2`
* Updated `org.apache.maven.plugins:maven-surefire-plugin:3.1.2` to `3.2.2`
* Updated `org.codehaus.mojo:versions-maven-plugin:2.16.1` to `2.16.2`
34 changes: 30 additions & 4 deletions pk_generated_parent.pom

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

23 changes: 12 additions & 11 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<artifactId>virtual-schema-common-document-files</artifactId>
<version>7.3.6</version>
<version>8.0.0</version>
<name>Virtual Schema for document data in files</name>
<description>Adapter for document data access from files.</description>
<url>https://github.com/exasol/virtual-schema-common-document-files/</url>
<properties>
<vs-common-document.version>9.4.3</vs-common-document.version>
<vs-common-document.version>10.1.0</vs-common-document.version>
</properties>
<dependencies>
<dependency>
Expand Down Expand Up @@ -35,19 +35,19 @@
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-params</artifactId>
<version>5.10.0</version>
<version>5.10.1</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>nl.jqno.equalsverifier</groupId>
<artifactId>equalsverifier</artifactId>
<version>3.15.2</version>
<version>3.15.4</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.mockito</groupId>
<artifactId>mockito-junit-jupiter</artifactId>
<version>5.6.0</version>
<version>5.8.0</version>
<scope>test</scope>
</dependency>
<dependency>
Expand All @@ -74,7 +74,7 @@
<dependency>
<groupId>com.exasol</groupId>
<artifactId>hamcrest-resultset-matcher</artifactId>
<version>1.6.1</version>
<version>1.6.3</version>
<scope>test</scope>
</dependency>
<dependency>
Expand All @@ -93,7 +93,7 @@
<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-text</artifactId>
<version>1.10.0</version>
<version>1.11.0</version>
<scope>test</scope>
</dependency>
<!-- https://mvnrepository.com/artifact/de.siegmar/fastcsv -->
Expand All @@ -105,7 +105,7 @@
<dependency>
<groupId>io.deephaven</groupId>
<artifactId>deephaven-csv</artifactId>
<version>0.12.0</version>
<version>0.14.0</version>
</dependency>
</dependencies>
<build>
Expand All @@ -123,7 +123,7 @@
<plugin>
<groupId>com.exasol</groupId>
<artifactId>project-keeper-maven-plugin</artifactId>
<version>2.9.13</version>
<version>2.9.17</version>
<executions>
<execution>
<goals>
Expand All @@ -147,7 +147,8 @@
<include>**/AbstractDocumentFilesAdapterIT*</include>
<include>**/RandomAccessInputStreamTestBase.class</include>
<include>**/AbstractInputStreamTest.class</include>
<include>abstractIntegrationTests/**/*</include> <!-- Test resources -->
<!-- Test resources -->
<include>abstractIntegrationTests/**/*</include>
<include>**/ParquetTestSetup*</include>
<include>**/ParquetTestWriterBuilder*</include>
<include>**/CsvTestSetup*</include>
Expand All @@ -162,7 +163,7 @@
<parent>
<artifactId>virtual-schema-common-document-files-generated-parent</artifactId>
<groupId>com.exasol</groupId>
<version>7.3.6</version>
<version>8.0.0</version>
<relativePath>pk_generated_parent.pom</relativePath>
</parent>
</project>
Loading

0 comments on commit 14c5665

Please sign in to comment.