aboutsummaryrefslogtreecommitdiffstats
path: root/vendor/github.com/ClickHouse/ch-go/proto/col_auto_gen.go
blob: 0a8496196c526fd49af5ef0fee10a43537edcf65 (plain) (blame)
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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
// Code generated by ./cmd/ch-gen-col, DO NOT EDIT.

package proto

func inferGenerated(t ColumnType) Column {
	switch t {
	case ColumnTypeArray.Sub(ColumnTypeFloat32):
		return new(ColFloat32).Array()
	case ColumnTypeNullable.Sub(ColumnTypeFloat32):
		return new(ColFloat32).Nullable()
	case ColumnTypeFloat32:
		return new(ColFloat32)
	case ColumnTypeArray.Sub(ColumnTypeFloat64):
		return new(ColFloat64).Array()
	case ColumnTypeNullable.Sub(ColumnTypeFloat64):
		return new(ColFloat64).Nullable()
	case ColumnTypeFloat64:
		return new(ColFloat64)
	case ColumnTypeArray.Sub(ColumnTypeIPv4):
		return new(ColIPv4).Array()
	case ColumnTypeNullable.Sub(ColumnTypeIPv4):
		return new(ColIPv4).Nullable()
	case ColumnTypeIPv4:
		return new(ColIPv4)
	case ColumnTypeArray.Sub(ColumnTypeIPv6):
		return new(ColIPv6).Array()
	case ColumnTypeNullable.Sub(ColumnTypeIPv6):
		return new(ColIPv6).Nullable()
	case ColumnTypeIPv6:
		return new(ColIPv6)
	case ColumnTypeArray.Sub(ColumnTypeDate):
		return new(ColDate).Array()
	case ColumnTypeNullable.Sub(ColumnTypeDate):
		return new(ColDate).Nullable()
	case ColumnTypeDate:
		return new(ColDate)
	case ColumnTypeArray.Sub(ColumnTypeDate32):
		return new(ColDate32).Array()
	case ColumnTypeNullable.Sub(ColumnTypeDate32):
		return new(ColDate32).Nullable()
	case ColumnTypeDate32:
		return new(ColDate32)
	case ColumnTypeArray.Sub(ColumnTypeInt8):
		return new(ColInt8).Array()
	case ColumnTypeNullable.Sub(ColumnTypeInt8):
		return new(ColInt8).Nullable()
	case ColumnTypeInt8:
		return new(ColInt8)
	case ColumnTypeArray.Sub(ColumnTypeUInt8):
		return new(ColUInt8).Array()
	case ColumnTypeNullable.Sub(ColumnTypeUInt8):
		return new(ColUInt8).Nullable()
	case ColumnTypeUInt8:
		return new(ColUInt8)
	case ColumnTypeArray.Sub(ColumnTypeInt16):
		return new(ColInt16).Array()
	case ColumnTypeNullable.Sub(ColumnTypeInt16):
		return new(ColInt16).Nullable()
	case ColumnTypeInt16:
		return new(ColInt16)
	case ColumnTypeArray.Sub(ColumnTypeUInt16):
		return new(ColUInt16).Array()
	case ColumnTypeNullable.Sub(ColumnTypeUInt16):
		return new(ColUInt16).Nullable()
	case ColumnTypeUInt16:
		return new(ColUInt16)
	case ColumnTypeArray.Sub(ColumnTypeInt32):
		return new(ColInt32).Array()
	case ColumnTypeNullable.Sub(ColumnTypeInt32):
		return new(ColInt32).Nullable()
	case ColumnTypeInt32:
		return new(ColInt32)
	case ColumnTypeArray.Sub(ColumnTypeUInt32):
		return new(ColUInt32).Array()
	case ColumnTypeNullable.Sub(ColumnTypeUInt32):
		return new(ColUInt32).Nullable()
	case ColumnTypeUInt32:
		return new(ColUInt32)
	case ColumnTypeArray.Sub(ColumnTypeInt64):
		return new(ColInt64).Array()
	case ColumnTypeNullable.Sub(ColumnTypeInt64):
		return new(ColInt64).Nullable()
	case ColumnTypeInt64:
		return new(ColInt64)
	case ColumnTypeArray.Sub(ColumnTypeUInt64):
		return new(ColUInt64).Array()
	case ColumnTypeNullable.Sub(ColumnTypeUInt64):
		return new(ColUInt64).Nullable()
	case ColumnTypeUInt64:
		return new(ColUInt64)
	case ColumnTypeArray.Sub(ColumnTypeInt128):
		return new(ColInt128).Array()
	case ColumnTypeNullable.Sub(ColumnTypeInt128):
		return new(ColInt128).Nullable()
	case ColumnTypeInt128:
		return new(ColInt128)
	case ColumnTypeArray.Sub(ColumnTypeUInt128):
		return new(ColUInt128).Array()
	case ColumnTypeNullable.Sub(ColumnTypeUInt128):
		return new(ColUInt128).Nullable()
	case ColumnTypeUInt128:
		return new(ColUInt128)
	case ColumnTypeArray.Sub(ColumnTypeInt256):
		return new(ColInt256).Array()
	case ColumnTypeNullable.Sub(ColumnTypeInt256):
		return new(ColInt256).Nullable()
	case ColumnTypeInt256:
		return new(ColInt256)
	case ColumnTypeArray.Sub(ColumnTypeUInt256):
		return new(ColUInt256).Array()
	case ColumnTypeNullable.Sub(ColumnTypeUInt256):
		return new(ColUInt256).Nullable()
	case ColumnTypeUInt256:
		return new(ColUInt256)
	default:
		return nil
	}
}