forked from influxdata/influxdb
-
Notifications
You must be signed in to change notification settings - Fork 2
/
measurement_schema_errors.go
72 lines (58 loc) · 2.15 KB
/
measurement_schema_errors.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
package influxdb
import (
influxerror "github.com/influxdata/influxdb/v2/kit/platform/errors"
)
var (
ErrMeasurementSchemaNameTooShort = &influxerror.Error{
Code: influxerror.EInvalid,
Msg: "too short",
}
ErrMeasurementSchemaNameTooLong = &influxerror.Error{
Code: influxerror.EInvalid,
Msg: "too long",
}
ErrMeasurementSchemaNameUnderscore = &influxerror.Error{
Code: influxerror.EInvalid,
Msg: "must not begin with _",
}
ErrMeasurementSchemaNameQuotes = &influxerror.Error{
Code: influxerror.EInvalid,
Msg: "must not contains single or double quotes",
}
ErrMeasurementSchemaColumnsMissing = &influxerror.Error{
Code: influxerror.EInvalid,
Msg: "measurement schema columns missing",
}
ErrMeasurementSchemaColumnsMissingTime = &influxerror.Error{
Code: influxerror.EInvalid,
Msg: "measurement schema columns missing time column with a timestamp semantic",
}
ErrMeasurementSchemaColumnsTimeInvalidSemantic = &influxerror.Error{
Code: influxerror.EInvalid,
Msg: "measurement schema contains a time column with an invalid semantic",
}
ErrMeasurementSchemaColumnsTimestampSemanticInvalidName = &influxerror.Error{
Code: influxerror.EInvalid,
Msg: "measurement schema columns contains a timestamp column that is not named time",
}
ErrMeasurementSchemaColumnsTimestampSemanticDataType = &influxerror.Error{
Code: influxerror.EInvalid,
Msg: "measurement schema columns contains a time column with a data type",
}
ErrMeasurementSchemaColumnsTagSemanticDataType = &influxerror.Error{
Code: influxerror.EInvalid,
Msg: "measurement schema columns contains a tag column with a data type",
}
ErrMeasurementSchemaColumnsFieldSemanticMissingDataType = &influxerror.Error{
Code: influxerror.EInvalid,
Msg: "measurement schema columns contains a field column with missing data type",
}
ErrMeasurementSchemaColumnsMissingFields = &influxerror.Error{
Code: influxerror.EInvalid,
Msg: "measurement schema columns requires at least one field type column",
}
ErrMeasurementSchemaColumnsDuplicateNames = &influxerror.Error{
Code: influxerror.EInvalid,
Msg: "measurement schema columns contains duplicate column names",
}
)