Merge pull request #12286 from lafirest/fix/iotdb_enum
fix(iotdb): improve the schema by gathering atoms into enums
This commit is contained in:
commit
1d46175a7d
|
@ -113,7 +113,7 @@ fields(action_parameters_data) ->
|
||||||
[
|
[
|
||||||
{timestamp,
|
{timestamp,
|
||||||
mk(
|
mk(
|
||||||
hoconsc:union([now, now_ms, now_ns, now_us, binary()]),
|
hoconsc:union([enum([now, now_ms, now_ns, now_us]), binary()]),
|
||||||
#{
|
#{
|
||||||
desc => ?DESC("config_parameters_timestamp"),
|
desc => ?DESC("config_parameters_timestamp"),
|
||||||
default => <<"now">>
|
default => <<"now">>
|
||||||
|
@ -129,7 +129,7 @@ fields(action_parameters_data) ->
|
||||||
)},
|
)},
|
||||||
{data_type,
|
{data_type,
|
||||||
mk(
|
mk(
|
||||||
hoconsc:union([text, boolean, int32, int64, float, double, binary()]),
|
hoconsc:union([enum([text, boolean, int32, int64, float, double]), binary()]),
|
||||||
#{
|
#{
|
||||||
required => true,
|
required => true,
|
||||||
desc => ?DESC("config_parameters_data_type")
|
desc => ?DESC("config_parameters_data_type")
|
||||||
|
|
Loading…
Reference in New Issue