Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
17 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 28 additions & 0 deletions ci/run_tests_pipeline.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,36 @@ variables:
QUESTDB_ILP_TCP_AUTH_ENABLE: false

stages:
- stage: Validate
displayName: "Validation"
jobs:
- job: Javadoc
displayName: "Javadoc"
pool:
name: "Azure Pipelines"
vmImage: "ubuntu-latest"
steps:
- checkout: self
fetchDepth: 0
lfs: false
submodules: false
- bash: |
git fetch origin $(System.PullRequest.SourceBranch)
git checkout FETCH_HEAD
displayName: "Checkout PR source branch"
condition: eq(variables['Build.Reason'], 'PullRequest')
- task: JavaToolInstaller@0
displayName: "Install Java 11"
inputs:
versionSpec: "11"
jdkArchitectureOption: "x64"
jdkSourceOption: "PreInstalled"
- bash: mvn -f core/pom.xml javadoc:javadoc -Pjavadoc --batch-mode
displayName: "Verify Javadoc"

- stage: BuildAndTest
displayName: "Building and testing"
dependsOn: Validate
jobs:
- job: RunOn
displayName: "on"
Expand Down
17 changes: 12 additions & 5 deletions core/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,7 @@
~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~-->

<project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://maven.apache.org/POM/4.0.0"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<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/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<name>QuestDB</name>
<description>QuestDB is high performance SQL time series database</description>
Expand All @@ -39,7 +38,7 @@
<test.include>%regex[.*[^o].class]</test.include><!-- exclude module-info.class-->
</properties>

<version>1.0.0-SNAPSHOT</version>
<version>1.0.1-SNAPSHOT</version>
<groupId>org.questdb</groupId>
<artifactId>client</artifactId>
<packaging>jar</packaging>
Expand All @@ -63,7 +62,7 @@
<scm>
<url>scm:git:https://github.com/questdb/java-questdb-client.git</url>
<connection>scm:git:https://github.com/questdb/java-questdb-client.git</connection>
<tag>1.0.0</tag>
<tag>HEAD</tag>
</scm>


Expand Down Expand Up @@ -166,7 +165,7 @@
<artifactId>maven-surefire-plugin</artifactId>
<version>3.5.3</version>
<configuration>
<forkNode implementation="org.apache.maven.plugin.surefire.extensions.SurefireForkNodeFactory"/>
<forkNode implementation="org.apache.maven.plugin.surefire.extensions.SurefireForkNodeFactory" />
<argLine>-Dslf4j.provider=ch.qos.logback.classic.spi.LogbackServiceProvider</argLine>
<useModulePath>true</useModulePath>
<includes>
Expand Down Expand Up @@ -198,12 +197,16 @@
</execution>
</executions>
<configuration>
<doclint>none</doclint>
<source>11</source>
<detectJavaApiLink>false</detectJavaApiLink>
<additionalJOptions>
<additionalJOption>${compilerArg1}</additionalJOption>
<additionalJOption>${compilerArg2}</additionalJOption>
</additionalJOptions>
<sourceFileExcludes>
<sourceFileExclude>${excludePattern1}</sourceFileExclude>
<sourceFileExclude>module-info.java</sourceFileExclude>
</sourceFileExcludes>
</configuration>
</plugin>
Expand Down Expand Up @@ -292,12 +295,16 @@
</execution>
</executions>
<configuration>
<doclint>none</doclint>
<source>11</source>
<detectJavaApiLink>false</detectJavaApiLink>
<additionalJOptions>
<additionalJOption>${compilerArg1}</additionalJOption>
<additionalJOption>${compilerArg2}</additionalJOption>
</additionalJOptions>
<sourceFileExcludes>
<sourceFileExclude>${excludePattern1}</sourceFileExclude>
<sourceFileExclude>module-info.java</sourceFileExclude>
</sourceFileExcludes>
</configuration>
</plugin>
Expand Down
4 changes: 2 additions & 2 deletions core/src/main/java/io/questdb/client/ParanoiaState.java
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,11 @@
public class ParanoiaState {
/**
* <pre>
* BASIC -> validates UTF-8 in log records (throws a LogError if invalid),
* BASIC -&gt; validates UTF-8 in log records (throws a LogError if invalid),
* throws a LogError on abandoned log records (missing .$() at the end of log statement),
* detects closed stdout in LogConsoleWriter.
* This introduces a low overhead to logging.
* AGGRESSIVE -> BASIC + holds recent history of log lines to help diagnose closed stdout,
* AGGRESSIVE -&gt; BASIC + holds recent history of log lines to help diagnose closed stdout,
* holds the stack trace of abandoned log record.
* This introduces a significant overhead to logging.
*
Expand Down
8 changes: 4 additions & 4 deletions core/src/main/java/io/questdb/client/std/Decimal128.java
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,7 @@ public static int compareTo(long aHigh, long aLow, int aScale, long bHigh, long
}

/**
* Divide two Decimal128 numbers and store the result in sink (a / b -> sink)
* Divide two Decimal128 numbers and store the result in sink (a / b {@code ->} sink)
* Uses optimal precision calculation up to MAX_SCALE
*
* @param a First operand (dividend)
Expand Down Expand Up @@ -477,7 +477,7 @@ public static boolean isNull(long hi, long lo) {
}

/**
* Calculate modulo of two Decimal128 numbers and store the result in sink (a % b -> sink)
* Calculate modulo of two Decimal128 numbers and store the result in sink (a % b {@code ->} sink)
*
* @param a First operand (dividend)
* @param b Second operand (divisor)
Expand Down Expand Up @@ -526,7 +526,7 @@ public static void putNull(long addr) {
}

/**
* Subtract two Decimal128 numbers and store the result in sink (a - b -> sink)
* Subtract two Decimal128 numbers and store the result in sink (a - b {@code ->} sink)
*
* @param a First operand (minuend)
* @param b Second operand (subtrahend)
Expand Down Expand Up @@ -1043,7 +1043,7 @@ public void ofZero() {
/**
* Rescale this Decimal128 in place
*
* @param newScale The new scale (must be >= current scale)
* @param newScale The new scale (must be {@code >=} current scale)
*/
public void rescale(int newScale) {
validateScale(newScale);
Expand Down
6 changes: 3 additions & 3 deletions core/src/main/java/io/questdb/client/std/Decimal256.java
Original file line number Diff line number Diff line change
Expand Up @@ -1089,7 +1089,7 @@ public boolean equals(Object obj) {
* Checks if this Decimal256 value fits within the specified storage size (pow 2).
* The value fits if its absolute magnitude can be represented with the given number of digits.
*
* @param size the target size (number of bytes available pow 2, e.g., 4 bytes -> 2)
* @param size the target size (number of bytes available pow 2, e.g., 4 bytes {@code ->} 2)
* @return true if the value fits within the storage size, false otherwise
*/
public boolean fitsInStorageSizePow2(int size) {
Expand Down Expand Up @@ -1615,7 +1615,7 @@ public void ofZero() {
/**
* Rescale this Decimal256 in place
*
* @param newScale The new scale (must be >= current scale)
* @param newScale The new scale (must be {@code >=} current scale)
*/
public void rescale(int newScale) {
if (isNull()) {
Expand Down Expand Up @@ -2869,7 +2869,7 @@ private void multiplyByPowerOf10InPlace(int n) {
/**
* Rescale this Decimal256 in place without checks
*
* @param newScale The new scale (must be >= current scale)
* @param newScale The new scale (must be {@code >=} current scale)
*/
private void rescale0(int newScale) {
int scaleDiff = newScale - this.scale;
Expand Down
8 changes: 4 additions & 4 deletions core/src/main/java/io/questdb/client/std/Decimal64.java
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ public static void add(Decimal64 a, Decimal64 b, Decimal64 sink) {
}

/**
* Divide two Decimal64 numbers and store the result in sink (a / b -> sink)
* Divide two Decimal64 numbers and store the result in sink (a / b {@code ->} sink)
*/
public static void divide(Decimal64 a, Decimal64 b, Decimal64 sink, int resultScale, RoundingMode roundingMode) {
sink.copyFrom(a);
Expand Down Expand Up @@ -218,7 +218,7 @@ public static boolean isNull(long value) {
}

/**
* Calculate modulo of two Decimal64 numbers and store the result in sink (a % b -> sink)
* Calculate modulo of two Decimal64 numbers and store the result in sink (a % b {@code ->} sink)
*/
public static void modulo(Decimal64 a, Decimal64 b, Decimal64 sink) {
sink.copyFrom(a);
Expand All @@ -242,7 +242,7 @@ public static void negate(Decimal64 a, Decimal64 sink) {
}

/**
* Subtract two Decimal64 numbers and store the result in sink (a - b -> sink)
* Subtract two Decimal64 numbers and store the result in sink (a - b {@code ->} sink)
*/
public static void subtract(Decimal64 a, Decimal64 b, Decimal64 sink) {
sink.copyFrom(a);
Expand Down Expand Up @@ -704,7 +704,7 @@ public void ofZero() {
/**
* Rescale this Decimal64 in place
*
* @param newScale The new scale (must be >= current scale)
* @param newScale The new scale (must be {@code >=} current scale)
*/
public void rescale(int newScale) {
validateScale(newScale);
Expand Down
5 changes: 2 additions & 3 deletions examples/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,12 @@
~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~-->

<project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://maven.apache.org/POM/4.0.0"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<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>

<groupId>org.questdb</groupId>
<artifactId>client-examples</artifactId>
<version>1.0.0-SNAPSHOT</version>
<version>1.0.1-SNAPSHOT</version>
<name>Examples for QuestDB</name>

<dependencies>
Expand Down
7 changes: 3 additions & 4 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,10 @@
~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~-->

<project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://maven.apache.org/POM/4.0.0"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<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/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>

<version>1.0.0-SNAPSHOT</version>
<version>1.0.1-SNAPSHOT</version>
<groupId>org.questdb</groupId>
<artifactId>client-parent</artifactId>
<packaging>pom</packaging>
Expand All @@ -36,7 +35,7 @@
<connection>scm:git:https://github.com/questdb/java-questdb-client.git</connection>
<developerConnection>scm:git:https://github.com/questdb/java-questdb-client.git</developerConnection>
<url>https://github.com/questdb/java-questdb-client</url>
<tag>1.0.0</tag>
<tag>HEAD</tag>
</scm>

<build>
Expand Down
Loading