@@ -48,7 +48,7 @@ func Test_schemaRegistry_FindSchema(t *testing.T) {
4848 "message" : {PropertyName : "message" , InternalPropertyName : "message" , Type : schema .QuesmaTypeKeyword , InternalPropertyType : "String" },
4949 "event_date" : {PropertyName : "event_date" , InternalPropertyName : "event_date" , Type : schema .QuesmaTypeTimestamp , InternalPropertyType : "DateTime64" },
5050 "count" : {PropertyName : "count" , InternalPropertyName : "count" , Type : schema .QuesmaTypeLong , InternalPropertyType : "Int64" }},
51- true ),
51+ true , "" ),
5252 found : true ,
5353 },
5454 {
@@ -77,7 +77,7 @@ func Test_schemaRegistry_FindSchema(t *testing.T) {
7777 "event_date" : {PropertyName : "event_date" , InternalPropertyName : "event_date" , Type : schema .QuesmaTypeTimestamp , InternalPropertyType : "DateTime64" },
7878 "count" : {PropertyName : "count" , InternalPropertyName : "count" , Type : schema .QuesmaTypeLong , InternalPropertyType : "Int64" }},
7979
80- true ),
80+ true , "" ),
8181 found : true ,
8282 },
8383 {
@@ -104,7 +104,7 @@ func Test_schemaRegistry_FindSchema(t *testing.T) {
104104 "message" : {PropertyName : "message" , InternalPropertyName : "message" , Type : schema .QuesmaTypeKeyword , InternalPropertyType : "" },
105105 "event_date" : {PropertyName : "event_date" , InternalPropertyName : "event_date" , Type : schema .QuesmaTypeTimestamp , InternalPropertyType : "DateTime64" },
106106 "count" : {PropertyName : "count" , InternalPropertyName : "count" , Type : schema .QuesmaTypeLong , InternalPropertyType : "Int64" }},
107- true ),
107+ true , "" ),
108108 found : true ,
109109 },
110110 {
@@ -129,7 +129,7 @@ func Test_schemaRegistry_FindSchema(t *testing.T) {
129129 "message" : {PropertyName : "message" , InternalPropertyName : "message" , Type : schema .QuesmaTypeKeyword },
130130 "event_date" : {PropertyName : "event_date" , InternalPropertyName : "event_date" , Type : schema .QuesmaTypeTimestamp , InternalPropertyType : "DateTime64" },
131131 "count" : {PropertyName : "count" , InternalPropertyName : "count" , Type : schema .QuesmaTypeLong , InternalPropertyType : "Int64" }},
132- true ),
132+ true , "" ),
133133 found : true ,
134134 },
135135 {
@@ -145,7 +145,7 @@ func Test_schemaRegistry_FindSchema(t *testing.T) {
145145 },
146146 tableDiscovery : fixedTableProvider {tables : map [string ]schema.Table {}},
147147 tableName : "some_table" ,
148- want : schema .NewSchema (map [schema.FieldName ]schema.Field {"message" : {PropertyName : "message" , InternalPropertyName : "message" , Type : schema .QuesmaTypeKeyword }}, false ),
148+ want : schema .NewSchema (map [schema.FieldName ]schema.Field {"message" : {PropertyName : "message" , InternalPropertyName : "message" , Type : schema .QuesmaTypeKeyword }}, false , "" ),
149149 found : true ,
150150 },
151151 {
@@ -171,7 +171,7 @@ func Test_schemaRegistry_FindSchema(t *testing.T) {
171171 "message" : {PropertyName : "message" , InternalPropertyName : "message" , Type : schema .QuesmaTypeKeyword },
172172 "event_date" : {PropertyName : "event_date" , InternalPropertyName : "event_date" , Type : schema .QuesmaTypeTimestamp , InternalPropertyType : "DateTime64" },
173173 "count" : {PropertyName : "count" , InternalPropertyName : "count" , Type : schema .QuesmaTypeLong , InternalPropertyType : "Int64" }},
174- true ),
174+ true , "" ),
175175 found : true ,
176176 },
177177 {
@@ -199,7 +199,7 @@ func Test_schemaRegistry_FindSchema(t *testing.T) {
199199 "event_date" : {PropertyName : "event_date" , InternalPropertyName : "event_date" , Type : schema .QuesmaTypeTimestamp , InternalPropertyType : "DateTime64" },
200200 "count" : {PropertyName : "count" , InternalPropertyName : "count" , Type : schema .QuesmaTypeLong , InternalPropertyType : "Int64" }}, map [schema.FieldName ]schema.FieldName {
201201 "message_alias" : "message" ,
202- }, true ),
202+ }, true , "" ),
203203 found : true ,
204204 },
205205 {
@@ -229,7 +229,7 @@ func Test_schemaRegistry_FindSchema(t *testing.T) {
229229 "event_date" : {PropertyName : "event_date" , InternalPropertyName : "event_date" , Type : schema .QuesmaTypeTimestamp , InternalPropertyType : "DateTime64" },
230230 "count" : {PropertyName : "count" , InternalPropertyName : "count" , Type : schema .QuesmaTypeLong , InternalPropertyType : "Int64" }}, map [schema.FieldName ]schema.FieldName {
231231 "message_alias" : "message" ,
232- }, true ),
232+ }, true , "" ),
233233 found : true ,
234234 },
235235 {
@@ -299,7 +299,7 @@ func Test_schemaRegistry_UpdateDynamicConfiguration(t *testing.T) {
299299 "message" : {PropertyName : "message" , InternalPropertyName : "message" , Type : schema .QuesmaTypeKeyword , InternalPropertyType : "String" },
300300 "event_date" : {PropertyName : "event_date" , InternalPropertyName : "event_date" , Type : schema .QuesmaTypeTimestamp , InternalPropertyType : "DateTime64" },
301301 "count" : {PropertyName : "count" , InternalPropertyName : "count" , Type : schema .QuesmaTypeLong , InternalPropertyType : "Int64" }},
302- true )
302+ true , "" )
303303 resultSchema , resultFound := s .FindSchema (schema .TableName (tableName ))
304304 assert .True (t , resultFound , "schema not found" )
305305 if ! reflect .DeepEqual (resultSchema , expectedSchema ) {
@@ -320,7 +320,7 @@ func Test_schemaRegistry_UpdateDynamicConfiguration(t *testing.T) {
320320 "event_date" : {PropertyName : "event_date" , InternalPropertyName : "event_date" , Type : schema .QuesmaTypeTimestamp , InternalPropertyType : "DateTime64" },
321321 "count" : {PropertyName : "count" , InternalPropertyName : "count" , Type : schema .QuesmaTypeLong , InternalPropertyType : "Int64" },
322322 "new_column" : {PropertyName : "new_column" , InternalPropertyName : "new_column" , Type : schema .QuesmaTypeText }},
323- true )
323+ true , "" )
324324 resultSchema , resultFound = s .FindSchema (schema .TableName (tableName ))
325325 assert .True (t , resultFound , "schema not found" )
326326 if ! reflect .DeepEqual (resultSchema , expectedSchema ) {
0 commit comments