Skip to content

Commit

Permalink
Merge branch 'hotfix/github-62'
Browse files Browse the repository at this point in the history
  • Loading branch information
kupferk committed Apr 6, 2020
2 parents 0f9c501 + f771a96 commit 01e8e6c
Show file tree
Hide file tree
Showing 19 changed files with 29 additions and 18 deletions.
7 changes: 6 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
# Version 0.12.1 -
# Version 0.12.2 - 2020-04-06

* Fix type coercion of DecimalTypes


# Version 0.12.1 - 2020-01-15

* Improve support for Swagger Schema
* Fix infinite loop in recursiveSql
Expand Down
2 changes: 1 addition & 1 deletion docker/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<parent>
<groupId>com.dimajix.flowman</groupId>
<artifactId>flowman-root</artifactId>
<version>0.12.1</version>
<version>0.12.2</version>
<relativePath>..</relativePath>
</parent>

Expand Down
2 changes: 1 addition & 1 deletion flowman-core/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<parent>
<groupId>com.dimajix.flowman</groupId>
<artifactId>flowman-root</artifactId>
<version>0.12.1</version>
<version>0.12.2</version>
<relativePath>..</relativePath>
</parent>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,8 @@ object SchemaUtils {
val rFractionalPrecision = rs
val totalIntegerPrecision = scala.math.max(lIntegerPrecision, rIntegerPrecision)
val totalFractionalPrecision = scala.math.max(lFractionalPrecision, rFractionalPrecision)
DecimalType(totalIntegerPrecision + totalFractionalPrecision, totalFractionalPrecision)
val totalPrecision = scala.math.min(totalIntegerPrecision + totalFractionalPrecision, DecimalType.MAX_PRECISION)
DecimalType(totalPrecision, totalFractionalPrecision)

// Integrals are promoted to bigger type
case (IntegralType(_, lp), IntegralType(_, rp)) =>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,11 @@ class SchemaUtilsTest extends FlatSpec with Matchers {
SchemaUtils.coerce(DecimalType(4,2), DecimalType(10,1)) should be (DecimalType(11,2))
}

it should "limit DecimlTypes to supported precisions" in {
SchemaUtils.coerce(DecimalType(38,2), DecimalType(38,10)) should be (DecimalType(38,10))
SchemaUtils.coerce(DecimalType(38,2), DecimalType(38,10)).sparkType should be (org.apache.spark.sql.types.DecimalType(38,10))
}

it should "coerce VarChar and Char types" in {
SchemaUtils.coerce(VarcharType(10), VarcharType(10)) should be (VarcharType(10))
SchemaUtils.coerce(VarcharType(20), VarcharType(10)) should be (VarcharType(20))
Expand Down
2 changes: 1 addition & 1 deletion flowman-dist/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<parent>
<groupId>com.dimajix.flowman</groupId>
<artifactId>flowman-root</artifactId>
<version>0.12.1</version>
<version>0.12.2</version>
<relativePath>..</relativePath>
</parent>

Expand Down
2 changes: 1 addition & 1 deletion flowman-plugins/aws/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<parent>
<groupId>com.dimajix.flowman</groupId>
<artifactId>flowman-root</artifactId>
<version>0.12.1</version>
<version>0.12.2</version>
<relativePath>../..</relativePath>
</parent>

Expand Down
2 changes: 1 addition & 1 deletion flowman-plugins/azure/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<parent>
<groupId>com.dimajix.flowman</groupId>
<artifactId>flowman-root</artifactId>
<version>0.12.1</version>
<version>0.12.2</version>
<relativePath>../..</relativePath>
</parent>

Expand Down
2 changes: 1 addition & 1 deletion flowman-plugins/example/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<parent>
<groupId>com.dimajix.flowman</groupId>
<artifactId>flowman-root</artifactId>
<version>0.12.1</version>
<version>0.12.2</version>
<relativePath>../..</relativePath>
</parent>

Expand Down
2 changes: 1 addition & 1 deletion flowman-plugins/impala/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<parent>
<groupId>com.dimajix.flowman</groupId>
<artifactId>flowman-root</artifactId>
<version>0.12.1</version>
<version>0.12.2</version>
<relativePath>../..</relativePath>
</parent>

Expand Down
2 changes: 1 addition & 1 deletion flowman-plugins/kafka/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<parent>
<groupId>com.dimajix.flowman</groupId>
<artifactId>flowman-root</artifactId>
<version>0.12.1</version>
<version>0.12.2</version>
<relativePath>../..</relativePath>
</parent>

Expand Down
2 changes: 1 addition & 1 deletion flowman-plugins/mariadb/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<parent>
<groupId>com.dimajix.flowman</groupId>
<artifactId>flowman-root</artifactId>
<version>0.12.1</version>
<version>0.12.2</version>
<relativePath>../..</relativePath>
</parent>

Expand Down
2 changes: 1 addition & 1 deletion flowman-server/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<parent>
<artifactId>flowman-root</artifactId>
<groupId>com.dimajix.flowman</groupId>
<version>0.12.1</version>
<version>0.12.2</version>
<relativePath>..</relativePath>
</parent>

Expand Down
2 changes: 1 addition & 1 deletion flowman-spark-sources/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<parent>
<groupId>com.dimajix.flowman</groupId>
<artifactId>flowman-root</artifactId>
<version>0.12.1</version>
<version>0.12.2</version>
<relativePath>..</relativePath>
</parent>

Expand Down
2 changes: 1 addition & 1 deletion flowman-spark-testing/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<parent>
<groupId>com.dimajix.flowman</groupId>
<artifactId>flowman-root</artifactId>
<version>0.12.1</version>
<version>0.12.2</version>
<relativePath>..</relativePath>
</parent>

Expand Down
2 changes: 1 addition & 1 deletion flowman-testing/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<parent>
<groupId>com.dimajix.flowman</groupId>
<artifactId>flowman-root</artifactId>
<version>0.12.1</version>
<version>0.12.2</version>
<relativePath>..</relativePath>
</parent>

Expand Down
2 changes: 1 addition & 1 deletion flowman-tools/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<parent>
<groupId>com.dimajix.flowman</groupId>
<artifactId>flowman-root</artifactId>
<version>0.12.1</version>
<version>0.12.2</version>
<relativePath>..</relativePath>
</parent>

Expand Down
2 changes: 1 addition & 1 deletion flowman-ui/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<parent>
<groupId>com.dimajix.flowman</groupId>
<artifactId>flowman-root</artifactId>
<version>0.12.1</version>
<version>0.12.2</version>
<relativePath>..</relativePath>
</parent>

Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>com.dimajix.flowman</groupId>
<artifactId>flowman-root</artifactId>
<version>0.12.1</version>
<version>0.12.2</version>
<packaging>pom</packaging>
<name>Flowman root pom</name>
<description>A Spark based ETL tool</description>
Expand Down

0 comments on commit 01e8e6c

Please sign in to comment.