@@ -69,7 +69,6 @@ func TestAsyncSearchHandler(t *testing.T) {
6969 Type : clickhouse .NewBaseType ("String" ),
7070 },
7171 },
72- Created : true ,
7372 })
7473 fields := map [schema.FieldName ]schema.Field {
7574 "@timestamp" : {PropertyName : "@timestamp" , InternalPropertyName : "@timestamp" , Type : schema .QuesmaTypeDate },
@@ -114,7 +113,6 @@ func TestAsyncSearchHandlerSpecialCharacters(t *testing.T) {
114113 "message_____" : {Name : "message_____" , Type : clickhouse .NewBaseType ("String" )},
115114 "__bytes" : {Name : "__bytes" , Type : clickhouse .NewBaseType ("Int64" )},
116115 },
117- Created : true ,
118116 }
119117 fields := map [schema.FieldName ]schema.Field {
120118 "host.name" : {PropertyName : "host.name" , InternalPropertyName : "host_name" , Type : schema .QuesmaTypeObject },
@@ -168,7 +166,6 @@ var table = util.NewSyncMapWith(tableName, &clickhouse.Table{
168166 Type : clickhouse .NewBaseType ("String" ),
169167 },
170168 },
171- Created : true ,
172169})
173170
174171func TestSearchHandler (t * testing.T ) {
@@ -262,7 +259,6 @@ func TestSearchHandler(t *testing.T) {
262259 Type : clickhouse .NewBaseType ("String" ),
263260 },
264261 },
265- Created : true ,
266262 }
267263
268264 tableMap := util .NewSyncMapWith (tableName , tab )
@@ -373,7 +369,6 @@ func TestSearchHandlerRuntimeMappings(t *testing.T) {
373369 Type : clickhouse .NewBaseType ("String" ),
374370 },
375371 },
376- Created : true ,
377372 })
378373
379374 s := & schema.StaticRegistry {
@@ -425,7 +420,6 @@ func TestSearchHandlerNoAttrsConfig(t *testing.T) {
425420 "message" : {Name : "message" , Type : clickhouse .NewBaseType ("String" )},
426421 "@timestamp" : {Name : "@timestamp" , Type : clickhouse .NewBaseType ("DateTime64" )},
427422 },
428- Created : true ,
429423 })
430424
431425 s := & schema.StaticRegistry {
@@ -477,7 +471,6 @@ func TestAsyncSearchFilter(t *testing.T) {
477471 Type : clickhouse.BaseType {Name : "Map(String, String)" },
478472 },
479473 },
480- Created : true ,
481474 }
482475 s := & schema.StaticRegistry {
483476 Tables : map [schema.IndexName ]schema.Schema {
@@ -553,7 +546,7 @@ func TestHandlingDateTimeFields(t *testing.T) {
553546 },
554547 }
555548
556- table := clickhouse.Table {Name : tableName , Config : clickhouse .NewChTableConfigTimestampStringAttr (), Created : true ,
549+ table := clickhouse.Table {Name : tableName , Config : clickhouse .NewChTableConfigTimestampStringAttr (),
557550 Cols : map [string ]* clickhouse.Column {
558551 "timestamp" : {Name : "timestamp" , Type : clickhouse .NewBaseType ("DateTime" )},
559552 "timestamp64" : {Name : "timestamp64" , Type : clickhouse .NewBaseType ("DateTime64" )},
@@ -685,7 +678,6 @@ func TestNumericFacetsQueries(t *testing.T) {
685678 Type : clickhouse .NewBaseType ("Float64" ),
686679 },
687680 },
688- Created : true ,
689681 })
690682 handlers := []string {"handleSearch" , "handleAsyncSearch" }
691683 for i , tt := range testdata .TestsNumericFacets {
@@ -779,7 +771,6 @@ func TestSearchTrackTotalCount(t *testing.T) {
779771 "message" : {Name : "message" , Type : clickhouse .NewBaseType ("String" )},
780772 "@timestamp" : {Name : "@timestamp" , Type : clickhouse .NewBaseType ("DateTime64" )},
781773 },
782- Created : true ,
783774 })
784775
785776 test := func (handlerName string , testcase testdata.FullSearchTestCase ) {
@@ -885,7 +876,6 @@ func TestFullQueryTestWIP(t *testing.T) {
885876 "message" : {Name : "message" , Type : clickhouse .NewBaseType ("String" )},
886877 "@timestamp" : {Name : "@timestamp" , Type : clickhouse .NewBaseType ("DateTime64" )},
887878 },
888- Created : true ,
889879 })
890880
891881 test := func (handlerName string , testcase testdata.FullSearchTestCase ) {
@@ -996,7 +986,6 @@ func TestSearchAfterParameter_sortByJustTimestamp(t *testing.T) {
996986 "message" : {Name : "message" , Type : clickhouse .NewBaseType ("String" )},
997987 "@timestamp" : {Name : "@timestamp" , Type : clickhouse .NewBaseType ("DateTime64" )},
998988 },
999- Created : true ,
1000989 })
1001990
1002991 someTime := time .Date (2024 , 1 , 29 , 18 , 11 , 36 , 491000000 , time .UTC ) // 1706551896491 in UnixMilli
@@ -1133,7 +1122,6 @@ func TestSearchAfterParameter_sortByJustOneStringField(t *testing.T) {
11331122 Cols : map [string ]* clickhouse.Column {
11341123 "message" : {Name : "message" , Type : clickhouse .NewBaseType ("String" )},
11351124 },
1136- Created : true ,
11371125 })
11381126
11391127 iterations := []struct {
@@ -1252,7 +1240,6 @@ func TestSearchAfterParameter_sortByMultipleFields(t *testing.T) {
12521240 "bicep_size" : {Name : "bicep_size" , Type : clickhouse .NewBaseType ("Int64" )},
12531241 "@timestamp" : {Name : "@timestamp" , Type : clickhouse .NewBaseType ("DateTime64" )},
12541242 },
1255- Created : true ,
12561243 })
12571244
12581245 someTime := time .Date (2024 , 1 , 29 , 18 , 11 , 36 , 491000000 , time .UTC ) // 1706551896491 in UnixMilli
@@ -1410,7 +1397,6 @@ func TestSearchAfterParameter_sortByNoField(t *testing.T) {
14101397 "bicep_size" : {Name : "bicep_size" , Type : clickhouse .NewBaseType ("Int64" )},
14111398 "@timestamp" : {Name : "@timestamp" , Type : clickhouse .NewBaseType ("DateTime64" )},
14121399 },
1413- Created : true ,
14141400 })
14151401
14161402 someTime := time .Date (2024 , 1 , 29 , 18 , 11 , 36 , 491000000 , time .UTC ) // 1706551896491 in UnixMilli
0 commit comments