laskoviymishka commented on code in PR #2762: URL: https://github.com/apache/iceberg-go/pull/2762#discussion_r4746532547
########## schema_verification_test.go: ########## @@ -0,0 +1,199 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +package iceberg_test + +import ( + "encoding/json" + "errors" + "fmt" + "os" + "path/filepath" + "reflect" + "slices" + "testing" + + "github.com/apache/iceberg-go" + "github.com/stretchr/testify/require" +) + +// schemaFixturesSkip names schema cases iceberg-go does not pass yet, with +// the reason. Listed cases still run, and fail once they pass so the entry +// gets removed. +var schemaFixturesSkip = map[string]string{ + "unknown/reject-unknown-required": "accepts a required unknown field", Review Comment: Makes sense. There's no issue for it yet, I'll file one and put the number in the reason. ########## schema_verification_test.go: ########## @@ -0,0 +1,199 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +package iceberg_test + +import ( + "encoding/json" + "errors" + "fmt" + "os" + "path/filepath" + "reflect" + "slices" + "testing" + + "github.com/apache/iceberg-go" + "github.com/stretchr/testify/require" +) + +// schemaFixturesSkip names schema cases iceberg-go does not pass yet, with +// the reason. Listed cases still run, and fail once they pass so the entry +// gets removed. +var schemaFixturesSkip = map[string]string{ Review Comment: I'd rather keep the two copies for now and pull out a helper when a third fixture surface lands, so the helper's shape comes from more than two callers. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
