You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@streampipes.apache.org by ze...@apache.org on 2021/09/27 14:25:25 UTC
[incubator-streampipes-extensions] branch dev updated: [hotfix]
Change enum to string in datalake sink
This is an automated email from the ASF dual-hosted git repository.
zehnder pushed a commit to branch dev
in repository https://gitbox.apache.org/repos/asf/incubator-streampipes-extensions.git
The following commit(s) were added to refs/heads/dev by this push:
new 224bd2a [hotfix] Change enum to string in datalake sink
224bd2a is described below
commit 224bd2a63686048bdc011ec5c4c5a42c7afa3f35
Author: Philipp Zehnder <ze...@fzi.de>
AuthorDate: Mon Sep 27 16:24:30 2021 +0200
[hotfix] Change enum to string in datalake sink
---
.../sinks/internal/jvm/datalake/DataLakeInfluxDbClient.java | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/streampipes-sinks-internal-jvm/src/main/java/org/apache/streampipes/sinks/internal/jvm/datalake/DataLakeInfluxDbClient.java b/streampipes-sinks-internal-jvm/src/main/java/org/apache/streampipes/sinks/internal/jvm/datalake/DataLakeInfluxDbClient.java
index eb7cd62..d31d7c5 100644
--- a/streampipes-sinks-internal-jvm/src/main/java/org/apache/streampipes/sinks/internal/jvm/datalake/DataLakeInfluxDbClient.java
+++ b/streampipes-sinks-internal-jvm/src/main/java/org/apache/streampipes/sinks/internal/jvm/datalake/DataLakeInfluxDbClient.java
@@ -25,7 +25,6 @@ import org.apache.streampipes.model.runtime.field.PrimitiveField;
import org.apache.streampipes.model.schema.EventProperty;
import org.apache.streampipes.model.schema.EventPropertyPrimitive;
import org.apache.streampipes.model.schema.EventSchema;
-import org.apache.streampipes.model.schema.PropertyScope;
import org.apache.streampipes.vocabulary.XSD;
import org.influxdb.InfluxDB;
import org.influxdb.InfluxDBFactory;
@@ -182,7 +181,7 @@ public class DataLakeInfluxDbClient {
PrimitiveField eventPropertyPrimitiveField = event.getFieldByRuntimeName(runtimeName).getAsPrimitive();
// store property as tag when he field is a dimension property
- if (PropertyScope.DIMENSION_PROPERTY.equals(ep.getPropertyScope())) {
+ if ("DIMENSION_PROPERTY".equals(ep.getPropertyScope())) {
p.tag(preparedRuntimeName, eventPropertyPrimitiveField.getAsString());
} else {
// Store property according to property type