Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,17 +39,24 @@ linters:
disable:
- fieldalignment
- shadow
staticcheck:
# golangci-lint's default list, with ST1000 (package docs) turned on.
checks: ["all", "-ST1003", "-ST1016", "-ST1020", "-ST1021", "-ST1022"]
exclusions:
generated: lax
# The "comments" preset is left out because it hides ST1000.
presets:
- comments
- common-false-positives
- legacy
- std-error-handling
rules:
- linters:
- errcheck
path: _test\.go$
- linters:
- staticcheck
path: (^|/)internal/
text: ST1000
paths:
- third_party$
- builtin$
Expand Down
21 changes: 21 additions & 0 deletions awsconfig/doc.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
// 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 awsconfig carries an *aws.Config on a context. The S3 FileIO, the
// DynamoDB catalog and the AWS KMS client use a config found there instead
// of loading their own.
package awsconfig
20 changes: 20 additions & 0 deletions catalog/glue/doc.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
// 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 glue implements a catalog backed by the AWS Glue Data Catalog.
// Import it to register the "glue" catalog type.
package glue
20 changes: 20 additions & 0 deletions catalog/hive/doc.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
// 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 hive implements a catalog backed by a Hive Metastore, which it
// reaches over Thrift. Import it to register the "hive" catalog type.
package hive
21 changes: 21 additions & 0 deletions catalog/rest/doc.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
// 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 rest implements a client for the Iceberg REST catalog API.
// Import it to register the "rest" catalog type and the "http" and "https"
// URI schemes.
package rest
22 changes: 22 additions & 0 deletions catalog/sql/doc.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
// 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 sql implements a catalog that keeps table and view metadata
// locations in the same database tables as Java's JdbcCatalog. Import it to

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this mention the one place we diverge from Java? As I read it, the tables match, but a namespace with . inside a component is stored under a __iceberg_namespace_v1__: JSON key (sql.go), which Java's dot-joined namespaceToString never writes (JdbcUtil).

// register the "sql" catalog type. That type needs the "sql.dialect" property
// and a "sql.driver" property naming a registered database/sql driver.
Comment on lines +20 to +21

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These strings are the exported DialectKey and DriverKey constants, so we could link them and keep the values:

Suggested change
// register the "sql" catalog type. That type needs the "sql.dialect" property
// and a "sql.driver" property naming a registered database/sql driver.
// register the "sql" catalog type. That type needs the [DialectKey]
// ("sql.dialect") property and a [DriverKey] ("sql.driver") property naming a
// registered database/sql driver.

package sql
22 changes: 22 additions & 0 deletions config/doc.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
// 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 config reads the iceberg-go configuration file, .iceberg-go.yaml.
// [EnvConfig] holds the settings that catalog.Load and table writes use,
// read at startup from $GOICEBERG_HOME or else the home directory.
// [LoadConfig] and [ParseConfig] read and decode a file on demand.
package config
21 changes: 21 additions & 0 deletions doc.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
// 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 holds the core types of the Go implementation of Apache
// Iceberg: schemas and data types, literals and expressions, partition specs
// and transforms, and manifests. The catalog and table packages build on it.
package iceberg
1 change: 1 addition & 0 deletions puffin/blob_writer_compression.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
// under the License.

package puffin

import (
Expand Down
1 change: 1 addition & 0 deletions puffin/blob_writer_compression_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
// under the License.

package puffin_test

import (
Expand Down
2 changes: 1 addition & 1 deletion puffin/puffin.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
// under the License.
//

// Package puffin provides reading and writing of Puffin files.
//
// Puffin is a file format designed to store statistics and indexes
Expand Down
1 change: 1 addition & 0 deletions puffin/puffin_writer.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
// under the License.

package puffin

import (
Expand Down
22 changes: 22 additions & 0 deletions table/doc.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
// 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 table reads and writes Iceberg tables. [Table.Scan] returns a
// [Scan] that reads rows as Arrow record batches, and [Table.NewTransaction]
// returns a [Transaction] that stages changes, such as appends, deletes and
// schema updates, and commits them through the table's catalog.
package table
22 changes: 22 additions & 0 deletions table/dv/doc.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
// 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 dv reads and writes deletion vectors, which replace position delete
// files from format version 3. A deletion vector is a bitmap of the deleted
// row positions in one data file, stored as a deletion-vector-v1 blob in a
// Puffin file. [DVWriter] writes them, and [ReadDV] and [ReadDVs] read them.
package dv
1 change: 1 addition & 0 deletions table/snapshot_manifest_stream.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
// under the License.

package table

import (
Expand Down
1 change: 1 addition & 0 deletions table/snapshot_manifest_stream_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
// under the License.

package table

import (
Expand Down
22 changes: 22 additions & 0 deletions view/doc.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
// 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 view implements Iceberg views. A view's [Metadata] holds versions
// of its query as SQL representations, [MetadataBuilder] applies changes to
// it, and catalogs commit those changes as [Update] values checked by
// [Requirement] values.
package view
Loading