Skip to content

[minor] /tableConfigs/validate can't convert default timestamp null value to LONG #12020

@dd-willgan

Description

@dd-willgan

Calling /tableConfigs/validate will convert a timestamp field to the following

"dateTimeFieldSpecs": [
	{
		"format": "1:MILLISECONDS:EPOCH",
		"sampleValue": null,
		"granularity": "1:MILLISECONDS",
		"singleValueField": true,
		"name": "created_at_epoch_ms",
		"maxLength": 512,
		"dataType": "LONG",
		"transformFunction": null,
		"defaultNullValue": -9223372036854775808,
		"virtualColumnProvider": null,
		"defaultNullValueString": "-9223372036854775808"
	}
]

However, if this config is fed to /tableConfigs/validate again, the following error will be thrown

exception: Cannot convert value: \'-9223372036854776000\' to type: LONG

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething is not working as expecteduiUI related issue

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions