CrateDB version:
CrateDB 4.7.0 (built 033afc5/2022-01-26T08:07:43Z
Linux 4.19.0-18-amd64 amd64
OpenJDK 64-Bit Server VM 17.0.1+12)
Table script
CREATE TABLE IF NOT EXISTS "data"."meterreading" (
"servicepointassetenergytixcode" VARCHAR(512),
"datetime" TIMESTAMP WITH TIME ZONE,
"recalculatedconsumption1" DOUBLE PRECISION,
"recalculatedconsumption2" DOUBLE PRECISION,
"recalculatedinjection1" DOUBLE PRECISION,
"recalculatedinjection2" DOUBLE PRECISION,
"recalculatedactualconsumption" DOUBLE PRECISION,
"recalculatedactualinjection" DOUBLE PRECISION,
"recalculatedtotalapparentpower" DOUBLE PRECISION,
"recalculatedtotalreactivepower" DOUBLE PRECISION,
"recalculatedactivepowerphase1" DOUBLE PRECISION,
"recalculatedactivepowerphase2" DOUBLE PRECISION,
"recalculatedactivepowerphase3" DOUBLE PRECISION,
"recalculatedvoltagel1l2" DOUBLE PRECISION,
"recalculatedvoltagel2l3" DOUBLE PRECISION,
"recalculatedvoltagel3l1" DOUBLE PRECISION,
"recalculatedvoltagellavg" DOUBLE PRECISION,
"recalculatedvoltagel1n" DOUBLE PRECISION,
"recalculatedvoltagel2n" DOUBLE PRECISION,
"recalculatedvoltagel3n" DOUBLE PRECISION,
"recalculatedvoltagelnavg" DOUBLE PRECISION,
"recalculatedcurrentphase1" DOUBLE PRECISION,
"recalculatedcurrentphase2" DOUBLE PRECISION,
"recalculatedcurrentphase3" DOUBLE PRECISION,
"recalculatedcurrentavg" DOUBLE PRECISION,
"recalculatedtotalpowerfactor" DOUBLE PRECISION,
"recalculatedfrequency" DOUBLE PRECISION,
"recalculateddatagramdatetime" TIMESTAMP WITH TIME ZONE,
"recalculatedproduction1" DOUBLE PRECISION,
"recalculatedproduction2" DOUBLE PRECISION,
"recalculatedactualproduction" DOUBLE PRECISION,
"recalculatedpulsequantity2" DOUBLE PRECISION,
PRIMARY KEY ("servicepointassetenergytixcode", "datetime")
)
CLUSTERED INTO 6 SHARDS
WITH (
"allocation.max_retries" = 5,
"blocks.metadata" = false,
"blocks.read" = false,
"blocks.read_only" = false,
"blocks.read_only_allow_delete" = false,
"blocks.write" = false,
codec = 'default',
column_policy = 'strict',
"mapping.total_fields.limit" = 1000,
max_ngram_diff = 1,
max_shingle_diff = 3,
number_of_replicas = '0-1',
"routing.allocation.enable" = 'all',
"routing.allocation.total_shards_per_node" = -1,
"store.type" = 'fs',
"translog.durability" = 'REQUEST',
"translog.flush_threshold_size" = 536870912,
"translog.sync_interval" = 5000,
"unassigned.node_left.delayed_timeout" = 60000,
"write.wait_for_active_shards" = '1'
)
i have seen that the datatype of the field servicepointassetenergytixcode
is varchar(512)
in our development is this Text
. Could this be the reason? How can we change this datatype?