iceberg schema version bump
This commit is contained in:
@@ -81,7 +81,7 @@ public class SchemaInitializer {
|
|||||||
// Bump this when the schema changes. Tables with a different (or missing) version
|
// Bump this when the schema changes. Tables with a different (or missing) version
|
||||||
// will be dropped and recreated. Increment by 1 for each incompatible change.
|
// will be dropped and recreated. Increment by 1 for each incompatible change.
|
||||||
// v1: open/high/low/close required; ingestor forward-fills interior gaps with previous close
|
// v1: open/high/low/close required; ingestor forward-fills interior gaps with previous close
|
||||||
private static final String OHLC_SCHEMA_VERSION = "1";
|
private static final String OHLC_SCHEMA_VERSION = "5";
|
||||||
private static final String SCHEMA_VERSION_PROP = "app.schema.version";
|
private static final String SCHEMA_VERSION_PROP = "app.schema.version";
|
||||||
|
|
||||||
private void initializeOhlcTable() {
|
private void initializeOhlcTable() {
|
||||||
@@ -179,7 +179,7 @@ public class SchemaInitializer {
|
|||||||
// v2: removed tick_denom/base_denom/quote_denom; added Nautilus instrument fields
|
// v2: removed tick_denom/base_denom/quote_denom; added Nautilus instrument fields
|
||||||
// (price_precision, size_precision, tick_size, lot_size, min_notional,
|
// (price_precision, size_precision, tick_size, lot_size, min_notional,
|
||||||
// margin_init, margin_maint, maker_fee, taker_fee, contract_multiplier)
|
// margin_init, margin_maint, maker_fee, taker_fee, contract_multiplier)
|
||||||
private static final String SYMBOL_METADATA_SCHEMA_VERSION = "2";
|
private static final String SYMBOL_METADATA_SCHEMA_VERSION = "5";
|
||||||
|
|
||||||
private void initializeSymbolMetadataTable() {
|
private void initializeSymbolMetadataTable() {
|
||||||
TableIdentifier tableId = TableIdentifier.of(namespace, "symbol_metadata");
|
TableIdentifier tableId = TableIdentifier.of(namespace, "symbol_metadata");
|
||||||
|
|||||||
@@ -65,10 +65,10 @@ public class OHLCBatchDeserializer implements DeserializationSchema<OHLCBatchWra
|
|||||||
rows.add(new OHLCBatchWrapper.OHLCRow(
|
rows.add(new OHLCBatchWrapper.OHLCRow(
|
||||||
row.getTimestamp(),
|
row.getTimestamp(),
|
||||||
row.getTicker(),
|
row.getTicker(),
|
||||||
row.hasOpen() ? row.getOpen() : null,
|
row.getOpen(),
|
||||||
row.hasHigh() ? row.getHigh() : null,
|
row.getHigh(),
|
||||||
row.hasLow() ? row.getLow() : null,
|
row.getLow(),
|
||||||
row.hasClose() ? row.getClose() : null,
|
row.getClose(),
|
||||||
row.hasVolume() ? row.getVolume() : null
|
row.hasVolume() ? row.getVolume() : null
|
||||||
));
|
));
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user