From 40a12c12295b323b5db613f3efec9e12b498b146 Mon Sep 17 00:00:00 2001 From: eruizgar91 Date: Tue, 7 Apr 2020 15:47:52 +0200 Subject: [PATCH 1/2] Allow null values in the eventRecords --- pom.xml | 2 +- .../resources/avro/FlatEventBlockRecord.avsc | 108 +++++++++--------- src/main/resources/avro/FlatEventRecord.avsc | 108 +++++++++--------- .../avro/LogRecordTopicsFlattened.avsc | 8 +- 4 files changed, 113 insertions(+), 113 deletions(-) diff --git a/pom.xml b/pom.xml index 2f5ee12..481b0c7 100755 --- a/pom.xml +++ b/pom.xml @@ -7,7 +7,7 @@ io.keyko.monitoring schemas jar - 0.3.3 + 0.3.4 Web3 Monitoring Schemas https://github.com/keyko-io/web3-monitoring-schemas diff --git a/src/main/resources/avro/FlatEventBlockRecord.avsc b/src/main/resources/avro/FlatEventBlockRecord.avsc index 1dfab8b..c786c9a 100644 --- a/src/main/resources/avro/FlatEventBlockRecord.avsc +++ b/src/main/resources/avro/FlatEventBlockRecord.avsc @@ -26,138 +26,138 @@ }, { "name": "indexed_param_name_0", - "type": "string", - "default": "" + "type": ["null", "string"], + "default": null }, { "name": "indexed_param_type_0", - "type": "string", - "default": "" + "type": ["null", "string"], + "default": null }, { "name": "indexed_param_value_0", - "type": "string", - "default": "" + "type": ["null", "string"], + "default": null }, { "name": "indexed_param_name_1", - "type": "string", - "default": "" + "type": ["null", "string"], + "default": null }, { "name": "indexed_param_type_1", - "type": "string", - "default": "" + "type": ["null", "string"], + "default": null }, { "name": "indexed_param_value_1", - "type": "string", - "default": "" + "type": ["null", "string"], + "default": null }, { "name": "indexed_param_name_2", - "type": "string", - "default": "" + "type": ["null", "string"], + "default": null }, { "name": "indexed_param_type_2", - "type": "string", - "default": "" + "type": ["null", "string"], + "default": null }, { "name": "indexed_param_value_2", - "type": "string", - "default": "" + "type": ["null", "string"], + "default": null }, { "name": "indexed_param_name_3", - "type": "string", - "default": "" + "type": ["null", "string"], + "default": null }, { "name": "indexed_param_type_3", - "type": "string", - "default": "" + "type": ["null", "string"], + "default": null }, { "name": "indexed_param_value_3", - "type": "string", - "default": "" + "type": ["null", "string"], + "default": null }, { "name": "non_indexed_param_name_0", - "type": "string", - "default": "" + "type": ["null", "string"], + "default": null }, { "name": "non_indexed_param_type_0", - "type": "string", - "default": "" + "type": ["null", "string"], + "default": null }, { "name": "non_indexed_param_value_0", - "type": "string", - "default": "" + "type": ["null", "string"], + "default": null }, { "name": "non_indexed_param_name_1", - "type": "string", - "default": "" + "type": ["null", "string"], + "default": null }, { "name": "non_indexed_param_type_1", - "type": "string", - "default": "" + "type": ["null", "string"], + "default": null }, { "name": "non_indexed_param_value_1", - "type": "string", - "default": "" + "type": ["null", "string"], + "default": null }, { "name": "non_indexed_param_name_2", - "type": "string", - "default": "" + "type": ["null", "string"], + "default": null }, { "name": "non_indexed_param_type_2", - "type": "string", - "default": "" + "type": ["null", "string"], + "default": null }, { "name": "non_indexed_param_value_2", - "type": "string", - "default": "" + "type": ["null", "string"], + "default": null }, { "name": "non_indexed_param_name_3", - "type": "string", - "default": "" + "type": ["null", "string"], + "default": null }, { "name": "non_indexed_param_type_3", - "type": "string", - "default": "" + "type": ["null", "string"], + "default": null }, { "name": "non_indexed_param_value_3", - "type": "string", - "default": "" + "type": ["null", "string"], + "default": null }, { "name": "non_indexed_param_name_4", - "type": "string", - "default": "" + "type": ["null", "string"], + "default": null }, { "name": "non_indexed_param_type_4", - "type": "string", - "default": "" + "type": ["null", "string"], + "default": null }, { "name": "non_indexed_param_value_4", - "type": "string", - "default": "" + "type": ["null", "string"], + "default": null }, { "name": "transactionHash", diff --git a/src/main/resources/avro/FlatEventRecord.avsc b/src/main/resources/avro/FlatEventRecord.avsc index 3e78edd..3c89ffa 100644 --- a/src/main/resources/avro/FlatEventRecord.avsc +++ b/src/main/resources/avro/FlatEventRecord.avsc @@ -26,138 +26,138 @@ }, { "name": "indexed_param_name_0", - "type": "string", - "default": "" + "type": ["null", "string"], + "default": null }, { "name": "indexed_param_type_0", - "type": "string", - "default": "" + "type": ["null", "string"], + "default": null }, { "name": "indexed_param_value_0", - "type": "string", - "default": "" + "type": ["null", "string"], + "default": null }, { "name": "indexed_param_name_1", - "type": "string", - "default": "" + "type": ["null", "string"], + "default": null }, { "name": "indexed_param_type_1", - "type": "string", - "default": "" + "type": ["null", "string"], + "default": null }, { "name": "indexed_param_value_1", - "type": "string", - "default": "" + "type": ["null", "string"], + "default": null }, { "name": "indexed_param_name_2", - "type": "string", - "default": "" + "type": ["null", "string"], + "default": null }, { "name": "indexed_param_type_2", - "type": "string", - "default": "" + "type": ["null", "string"], + "default": null }, { "name": "indexed_param_value_2", - "type": "string", - "default": "" + "type": ["null", "string"], + "default": null }, { "name": "indexed_param_name_3", - "type": "string", - "default": "" + "type": ["null", "string"], + "default": null }, { "name": "indexed_param_type_3", - "type": "string", - "default": "" + "type": ["null", "string"], + "default": null }, { "name": "indexed_param_value_3", - "type": "string", - "default": "" + "type": ["null", "string"], + "default": null }, { "name": "non_indexed_param_name_0", - "type": "string", - "default": "" + "type": ["null", "string"], + "default": null }, { "name": "non_indexed_param_type_0", - "type": "string", - "default": "" + "type": ["null", "string"], + "default": null }, { "name": "non_indexed_param_value_0", - "type": "string", - "default": "" + "type": ["null", "string"], + "default": null }, { "name": "non_indexed_param_name_1", - "type": "string", - "default": "" + "type": ["null", "string"], + "default": null }, { "name": "non_indexed_param_type_1", - "type": "string", - "default": "" + "type": ["null", "string"], + "default": null }, { "name": "non_indexed_param_value_1", - "type": "string", - "default": "" + "type": ["null", "string"], + "default": null }, { "name": "non_indexed_param_name_2", - "type": "string", - "default": "" + "type": ["null", "string"], + "default": null }, { "name": "non_indexed_param_type_2", - "type": "string", - "default": "" + "type": ["null", "string"], + "default": null }, { "name": "non_indexed_param_value_2", - "type": "string", - "default": "" + "type": ["null", "string"], + "default": null }, { "name": "non_indexed_param_name_3", - "type": "string", - "default": "" + "type": ["null", "string"], + "default": null }, { "name": "non_indexed_param_type_3", - "type": "string", - "default": "" + "type": ["null", "string"], + "default": null }, { "name": "non_indexed_param_value_3", - "type": "string", - "default": "" + "type": ["null", "string"], + "default": null }, { "name": "non_indexed_param_name_4", - "type": "string", - "default": "" + "type": ["null", "string"], + "default": null }, { "name": "non_indexed_param_type_4", - "type": "string", - "default": "" + "type": ["null", "string"], + "default": null }, { "name": "non_indexed_param_value_4", - "type": "string", - "default": "" + "type": ["null", "string"], + "default": null }, { "name": "transactionHash", diff --git a/src/main/resources/avro/LogRecordTopicsFlattened.avsc b/src/main/resources/avro/LogRecordTopicsFlattened.avsc index a0528ba..0751986 100644 --- a/src/main/resources/avro/LogRecordTopicsFlattened.avsc +++ b/src/main/resources/avro/LogRecordTopicsFlattened.avsc @@ -16,22 +16,22 @@ }, { "name": "topic0", - "type": "string", + "type": ["null", "string"], "default": "" }, { "name": "topic1", - "type": "string", + "type": ["null", "string"], "default": "" }, { "name": "topic2", - "type": "string", + "type": ["null", "string"], "default": "" }, { "name": "topic3", - "type": "string", + "type": ["null", "string"], "default": "" }, { From d8551d2e24160e80c9de6f015091192cc2e15b08 Mon Sep 17 00:00:00 2001 From: eruizgar91 Date: Tue, 7 Apr 2020 15:51:41 +0200 Subject: [PATCH 2/2] change default --- src/main/resources/avro/LogRecordTopicsFlattened.avsc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main/resources/avro/LogRecordTopicsFlattened.avsc b/src/main/resources/avro/LogRecordTopicsFlattened.avsc index 0751986..a07f1d7 100644 --- a/src/main/resources/avro/LogRecordTopicsFlattened.avsc +++ b/src/main/resources/avro/LogRecordTopicsFlattened.avsc @@ -17,22 +17,22 @@ { "name": "topic0", "type": ["null", "string"], - "default": "" + "default": null }, { "name": "topic1", "type": ["null", "string"], - "default": "" + "default": null }, { "name": "topic2", "type": ["null", "string"], - "default": "" + "default": null }, { "name": "topic3", "type": ["null", "string"], - "default": "" + "default": null }, { "name": "transactionHash",