diff --git a/doc/changes/changelog.md b/doc/changes/changelog.md index 5d866a1..7826d3e 100644 --- a/doc/changes/changelog.md +++ b/doc/changes/changelog.md @@ -1,5 +1,6 @@ # Changes +* [2.0.1](changes_2.0.1.md) * [2.0.0](changes_2.0.0.md) * [1.1.0](changes_1.1.0.md) * [1.0.1](changes-1.0.1.md) diff --git a/doc/changes/changes_2.0.1.md b/doc/changes/changes_2.0.1.md new file mode 100644 index 0000000..7b8f10c --- /dev/null +++ b/doc/changes/changes_2.0.1.md @@ -0,0 +1,7 @@ +# Test Database Builder 2.0.1, released 2020-??-?? + +Code name: ?? + +## Bugfixes + +* #41: Remove R as Virtual Schema language diff --git a/pom.xml b/pom.xml index dd4449f..2700bdf 100644 --- a/pom.xml +++ b/pom.xml @@ -1,383 +1,390 @@ - - - 4.0.0 - com.exasol - test-db-builder-java - 2.0.0 - Test Database Builder for Java - pom.xml - https://github.com/exasol/test-db-builder - - UTF-8 - UTF-8 - 11 - 5.6.2 - 1.6.2 - 1.14.3 - 3.0.0-M4 - target/site/jacoco/jacoco.xml,target/site/jacoco-it/jacoco.xml - - true - - - - MIT - https://opensource.org/licenses/MIT - repo - - - - - Exasol - opensource@exasol.com - Exasol AG - https://www.exasol.com/ - - - - scm:git:https://github.com/exasol/test-db-builder-java.git - scm:git:https://github.com/exasol/test-db-builder-java.git - https://github.com/exasol/test-db-builder-java/tree/master - - - - ossrh - https://oss.sonatype.org/content/repositories/snapshots - - - ossrh - https://oss.sonatype.org/service/local/staging/deploy/maven2/ - - - - - maven.exasol.com - https://maven.exasol.com/artifactory/exasol-releases - - false - - - - maven.exasol.com-snapshots - https://maven.exasol.com/artifactory/exasol-snapshots - - true - - - - - - com.exasol - exasol-jdbc - 7.0.3 - runtime - - - mysql - mysql-connector-java - 8.0.22 - runtime - - - com.exasol - db-fundamentals-java - 0.1.1 - - - com.exasol - exasol-testcontainers - 3.2.0 - test - - - org.testcontainers - junit-jupiter - ${test.containers.version} - test - - - org.testcontainers - mysql - ${test.containers.version} - test - - - com.exasol - hamcrest-resultset-matcher - 1.2.1 - test - - - org.hamcrest - hamcrest - 2.2 - test - - - org.junit.jupiter - junit-jupiter-engine - ${junit.version} - test - - - org.junit.platform - junit-platform-runner - ${junit.platform.version} - test - - - org.junit.jupiter - junit-jupiter-params - ${junit.version} - test - - - org.mockito - mockito-junit-jupiter - 3.6.0 - test - - - nl.jqno.equalsverifier - equalsverifier - 3.5 - test - - - - - - org.apache.maven.plugins - maven-surefire-plugin - ${surefire.and.failsafe.plugin.version} - - - -Djava.util.logging.config.file=src/test/resources/logging.properties ${argLine} - - - - org.jacoco - jacoco-maven-plugin - 0.8.5 - - - prepare-agent - - prepare-agent - - - - prepare-agent-integration - - prepare-agent-integration - - - - report - test - - report - - - - report-integration - verify - - report-integration - - - - - - org.apache.maven.plugins - maven-compiler-plugin - 3.8.1 - - ${java.version} - ${java.version} - - - - org.apache.maven.plugins - maven-failsafe-plugin - ${surefire.and.failsafe.plugin.version} - - - -Djava.util.logging.config.file=src/test/resources/logging.properties ${argLine} - - - - - integration-test - verify - - - - - - org.apache.maven.plugins - maven-source-plugin - 3.2.1 - - - attach-sources - - jar - - - - - - org.apache.maven.plugins - maven-javadoc-plugin - 3.2.0 - - - attach-javadocs - - jar - - - - - UTF-8 - - true - true - true - - - - org.apache.maven.plugins - maven-gpg-plugin - 1.6 - - - sign-artifacts - verify - - sign - - - - - - org.itsallcode - openfasttrace-maven-plugin - 1.0.0 - - - trace-requirements - - trace - - - - - html - - - - org.sonatype.ossindex.maven - ossindex-maven-plugin - 3.1.0 - - - package - - audit - - - - - - org.codehaus.mojo - versions-maven-plugin - 2.7 - - - package - - display-plugin-updates - display-dependency-updates - - - - - file:///${project.basedir}/versionsMavenPluginRules.xml - - - - org.apache.maven.plugins - maven-enforcer-plugin - 3.0.0-M3 - - - enforce-maven - - enforce - - - - - 3.3.9 - - - - - - - - com.exasol - project-keeper-maven-plugin - 0.2.0 - - - - verify - - - - - - maven_central - integration_tests - - - - - - - - - org.eclipse.m2e - lifecycle-mapping - 1.0.0 - - - - - - org.codehaus.mojo - exec-maven-plugin - [1.0,) - - exec - - - - - - - - - - - - - + + 4.0.0 + com.exasol + test-db-builder-java + 2.0.0 + Test Database Builder for Java + pom.xml + https://github.com/exasol/test-db-builder + + UTF-8 + UTF-8 + 11 + 5.6.2 + 1.6.2 + 1.14.3 + 3.0.0-M4 + target/site/jacoco/jacoco.xml,target/site/jacoco-it/jacoco.xml + + true + + + + MIT + https://opensource.org/licenses/MIT + repo + + + + + Exasol + opensource@exasol.com + Exasol AG + https://www.exasol.com/ + + + + scm:git:https://github.com/exasol/test-db-builder-java.git + scm:git:https://github.com/exasol/test-db-builder-java.git + https://github.com/exasol/test-db-builder-java/tree/master + + + + ossrh + https://oss.sonatype.org/content/repositories/snapshots + + + ossrh + https://oss.sonatype.org/service/local/staging/deploy/maven2/ + + + + + maven.exasol.com + https://maven.exasol.com/artifactory/exasol-releases + + false + + + + maven.exasol.com-snapshots + https://maven.exasol.com/artifactory/exasol-snapshots + + true + + + + + + com.exasol + exasol-jdbc + 7.0.3 + runtime + + + mysql + mysql-connector-java + 8.0.22 + runtime + + + com.exasol + db-fundamentals-java + 0.1.1 + + + com.exasol + exasol-testcontainers + 3.2.0 + test + + + org.testcontainers + junit-jupiter + ${test.containers.version} + test + + + org.testcontainers + mysql + ${test.containers.version} + test + + + com.exasol + hamcrest-resultset-matcher + 1.2.1 + test + + + org.hamcrest + hamcrest + 2.2 + test + + + org.junit.jupiter + junit-jupiter-engine + ${junit.version} + test + + + org.junit.platform + junit-platform-runner + ${junit.platform.version} + test + + + org.junit.jupiter + junit-jupiter-params + ${junit.version} + test + + + org.mockito + mockito-junit-jupiter + 3.6.0 + test + + + nl.jqno.equalsverifier + equalsverifier + 3.5 + test + + + + + + + org.apache.maven.plugins + maven-surefire-plugin + ${surefire.and.failsafe.plugin.version} + + + -Djava.util.logging.config.file=src/test/resources/logging.properties ${argLine} + + + + org.jacoco + jacoco-maven-plugin + 0.8.5 + + + prepare-agent + + prepare-agent + + + + prepare-agent-integration + + prepare-agent-integration + + + + report + test + + report + + + + report-integration + verify + + report-integration + + + + + + org.apache.maven.plugins + maven-compiler-plugin + 3.8.1 + + ${java.version} + ${java.version} + + + + org.apache.maven.plugins + maven-failsafe-plugin + ${surefire.and.failsafe.plugin.version} + + + -Djava.util.logging.config.file=src/test/resources/logging.properties ${argLine} + + + + + integration-test + verify + + + + + + org.apache.maven.plugins + maven-source-plugin + 3.2.1 + + + attach-sources + + jar + + + + + + org.apache.maven.plugins + maven-javadoc-plugin + 3.2.0 + + + attach-javadocs + + jar + + + + + UTF-8 + + true + true + true + + + + org.apache.maven.plugins + maven-gpg-plugin + 1.6 + + + sign-artifacts + verify + + sign + + + + + + org.itsallcode + openfasttrace-maven-plugin + 1.0.0 + + + trace-requirements + + trace + + + + + html + + + + org.sonatype.ossindex.maven + ossindex-maven-plugin + 3.1.0 + + + package + + audit + + + + + + + 7ea56ad4-8a8b-4e51-8ed9-5aad83d8efb1 + + + + + org.codehaus.mojo + versions-maven-plugin + 2.7 + + + package + + display-plugin-updates + display-dependency-updates + + + + + file:///${project.basedir}/versionsMavenPluginRules.xml + + + + org.apache.maven.plugins + maven-enforcer-plugin + 3.0.0-M3 + + + enforce-maven + + enforce + + + + + 3.3.9 + + + + + + + + com.exasol + project-keeper-maven-plugin + 0.2.0 + + + + verify + + + + + + maven_central + integration_tests + + + + + + + + + org.eclipse.m2e + lifecycle-mapping + 1.0.0 + + + + + + org.codehaus.mojo + exec-maven-plugin + [1.0,) + + exec + + + + + + + + + + + + + \ No newline at end of file diff --git a/src/main/java/com/exasol/dbbuilder/dialects/exasol/udf/UdfScript.java b/src/main/java/com/exasol/dbbuilder/dialects/exasol/udf/UdfScript.java index 2b92d19..de6bbf3 100644 --- a/src/main/java/com/exasol/dbbuilder/dialects/exasol/udf/UdfScript.java +++ b/src/main/java/com/exasol/dbbuilder/dialects/exasol/udf/UdfScript.java @@ -1,15 +1,11 @@ package com.exasol.dbbuilder.dialects.exasol.udf; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; +import java.util.*; import com.exasol.db.Identifier; import com.exasol.dbbuilder.dialects.Column; import com.exasol.dbbuilder.dialects.Schema; -import com.exasol.dbbuilder.dialects.exasol.AbstractScript; -import com.exasol.dbbuilder.dialects.exasol.BucketFsContentAdapterScriptBuilder; -import com.exasol.dbbuilder.dialects.exasol.ExasolImmediateDatabaseObjectWriter; +import com.exasol.dbbuilder.dialects.exasol.*; /** * This class represents UDF scripts. @@ -30,7 +26,7 @@ private UdfScript(final Builder builder) { /** * Get a builder for {@link UdfScript}. - * + * * @param writer data object writer * @param parentSchema parent schema * @param name name of the script @@ -48,7 +44,7 @@ public String getType() { /** * Get the input parameters for this UDF. - * + * * @return list of input parameters */ public List getParameters() { @@ -57,7 +53,7 @@ public List getParameters() { /** * Get the {@link UdfReturnType} of this UDF. - * + * * @return {@link UdfReturnType} of this UDF */ public UdfReturnType getReturnType() { @@ -66,7 +62,7 @@ public UdfReturnType getReturnType() { /** * Get the {@link InputType} of this UDF. - * + * * @return {@link InputType} of this UDF */ public InputType getInputType() { @@ -91,7 +87,7 @@ public void drop() { * Languages supported by UDFs */ public enum Language { - JAVA, PYTHON, LUA, R + JAVA, PYTHON, LUA } /** @@ -137,7 +133,7 @@ public Builder language(final Language language) { /** * Set input type of the UDF. - * + * * @param inputType type * @return self for fluent programming */ @@ -148,7 +144,7 @@ public Builder inputType(final InputType inputType) { /** * Set return type fo this UDF to EMITS(param_name type, ...). - * + * * @param columns {@link Column}s that the UDF emits * @return self for fluent programming */ @@ -159,7 +155,7 @@ public Builder emits(final Column... columns) { /** * Add an input parameter to this UDF. - * + * * @param name name of the parameter * @param type type of the parameter * @return self for fluent programming @@ -181,7 +177,7 @@ public Builder emits() { /** * Set return type fo this UDF to EMITS(...). - * + * * @param returnType return type of the UDF * @return self for fluent programming */ @@ -192,7 +188,7 @@ public Builder returns(final String returnType) { /** * Build the UDF script. - * + * * @return built UDF script */ public UdfScript build() {