Skip to content

Commit 620b32a

Browse files
mapleFUxuwei.fu
authored andcommitted
fix: Minor typo fixes (apache#115)
Co-authored-by: xuwei.fu <[email protected]>
1 parent 7298adf commit 620b32a

File tree

4 files changed

+8
-6
lines changed

4 files changed

+8
-6
lines changed

src/iceberg/manifest_list.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ namespace iceberg {
2727

2828
const StructType& PartitionFieldSummary::Type() {
2929
static const StructType kInstance{{
30-
PartitionFieldSummary::kConsTainsNull,
30+
PartitionFieldSummary::kContainsNull,
3131
PartitionFieldSummary::kContainsNaN,
3232
PartitionFieldSummary::kLowerBound,
3333
PartitionFieldSummary::kUpperBound,

src/iceberg/manifest_list.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ struct ICEBERG_EXPORT PartitionFieldSummary {
5252
/// values are null or NaN
5353
std::optional<std::vector<uint8_t>> upper_bound;
5454

55-
inline static const SchemaField kConsTainsNull =
55+
inline static const SchemaField kContainsNull =
5656
SchemaField::MakeRequired(509, "contains_null", std::make_shared<BooleanType>(),
5757
"True if any file has a null partition value");
5858
inline static const SchemaField kContainsNaN =

src/iceberg/snapshot.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ struct ICEBERG_EXPORT DataOperation {
234234
struct ICEBERG_EXPORT Snapshot {
235235
static constexpr int64_t kInvalidSnapshotId = -1;
236236

237-
/// A unqiue long ID.
237+
/// A unique long ID.
238238
int64_t snapshot_id;
239239
/// The snapshot ID of the snapshot's parent. Omitted for any snapshot with no parent.
240240
std::optional<int64_t> parent_snapshot_id;

src/iceberg/table_metadata.h

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,9 +69,11 @@ struct ICEBERG_EXPORT MetadataLogEntry {
6969
/// \brief Represents the metadata for an Iceberg table
7070
///
7171
/// Note that it only contains table metadata from the spec. Compared to the Java
72-
/// implementation, missing pieces including: 1) Map<Integer,
73-
/// Schema|PartitionSpec|SortOrder> 2) List<MetadataUpdate> 3) Map<Long, Snapshot> 4)
74-
/// Map<String, SnapshotRef>
72+
/// implementation, missing pieces including:
73+
/// (1) Map<Integer, Schema|PartitionSpec|SortOrder>
74+
/// (2) List<MetadataUpdate>
75+
/// (3) Map<Long, Snapshot>
76+
/// (4) Map<String, SnapshotRef>
7577
struct ICEBERG_EXPORT TableMetadata {
7678
static constexpr int8_t kDefaultTableFormatVersion = 2;
7779
static constexpr int8_t kSupportedTableFormatVersion = 3;

0 commit comments

Comments
 (0)