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
|
||||
// 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
|
||||
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 void initializeOhlcTable() {
|
||||
@@ -179,7 +179,7 @@ public class SchemaInitializer {
|
||||
// v2: removed tick_denom/base_denom/quote_denom; added Nautilus instrument fields
|
||||
// (price_precision, size_precision, tick_size, lot_size, min_notional,
|
||||
// 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() {
|
||||
TableIdentifier tableId = TableIdentifier.of(namespace, "symbol_metadata");
|
||||
|
||||
@@ -65,10 +65,10 @@ public class OHLCBatchDeserializer implements DeserializationSchema<OHLCBatchWra
|
||||
rows.add(new OHLCBatchWrapper.OHLCRow(
|
||||
row.getTimestamp(),
|
||||
row.getTicker(),
|
||||
row.hasOpen() ? row.getOpen() : null,
|
||||
row.hasHigh() ? row.getHigh() : null,
|
||||
row.hasLow() ? row.getLow() : null,
|
||||
row.hasClose() ? row.getClose() : null,
|
||||
row.getOpen(),
|
||||
row.getHigh(),
|
||||
row.getLow(),
|
||||
row.getClose(),
|
||||
row.hasVolume() ? row.getVolume() : null
|
||||
));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user