Skip to content

Commit

Permalink
Finalized 0.12.6 release.
Browse files Browse the repository at this point in the history
Signed-off-by: Ralph Gasser <[email protected]>
  • Loading branch information
ppanopticon committed Apr 23, 2021
1 parent bd8d1e7 commit 2431180
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 10 deletions.
8 changes: 8 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# Change log for Cottontail DB

## Version 0.12.6

### Bugfixes

* Fixed various bugs related to transaction management especially for DDL statements.
* Fixed an issue that reset the entity statistics during optimization
* Fixed a race condition in the LockManager

## Version 0.12.5

* There is now also a Docker container on DockerHub
Expand Down
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ apply plugin: 'com.github.johnrengelman.shadow'

/* Group and SNAPSHOT version. Update version for each major and minor release. */
group 'org.vitrivr'
version '0.12.6-SNAPSHOT'
version '0.12.6'

/* General application attributes. */
mainClassName = 'org.vitrivr.cottontail.CottontailKt'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,12 @@ import java.util.*
*/
class Complex32ValueTest {


companion object {
private const val DELTA = 1e-3f
fun isCorrect(expected: Complex, actual: Complex32Value) {
if (actual.real.value == 0.0f) {
assertEquals(expected.real.toFloat(), actual.real.value)
} else
{
} else {
val r_ratio = expected.real.toFloat() / actual.real.value
Assertions.assertTrue(r_ratio > 1.0f - DELTA)
Assertions.assertTrue(r_ratio < 1.0f + DELTA)
Expand All @@ -39,16 +37,15 @@ class Complex32ValueTest {
}
}

private val random = SplittableRandom()

@Test
internal fun testValueCreation() {
isCorrect(Complex(1.0, 0.0), Complex32Value(1.0f))
isCorrect(Complex(1.0, 0.0), Complex32Value(1.0))
isCorrect(Complex(1.0, 0.0), Complex32Value(FloatValue(1.0f)))
}


private val random = SplittableRandom()

@RepeatedTest(25)
fun testAdd() {
val c1 = Complex32Value.random(random)
Expand All @@ -71,10 +68,7 @@ class Complex32ValueTest {
@RepeatedTest(25)
fun testUnaryMinus() {
val c1 = Complex32Value.random(random)

val c1p = Complex(c1.real.asDouble().value, c1.imaginary.asDouble().value)


isCorrect(c1p.multiply(-1), -c1)
}

Expand Down

0 comments on commit 2431180

Please sign in to comment.