We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3de0493 commit 171e233Copy full SHA for 171e233
1 file changed
src/iceberg/update/update_schema.cc
@@ -299,6 +299,10 @@ std::vector<SchemaField> ApplyChangesVisitor::MoveFields(
299
/// the column scale), so differing scales fall through to `CastTo` and are rejected. All
300
/// other conversions delegate to `CastTo`, which reports narrowing via AboveMax/BelowMin
301
/// sentinels that callers reject.
302
+///
303
+/// \pre `target_type` is non-null; every caller passes a resolved field type. `value` is
304
+/// the caller's dereferenced default, so a missing default must be filtered out before
305
+/// this is reached.
306
Result<Literal> CastDefaultToType(const Literal& value,
307
const std::shared_ptr<PrimitiveType>& target_type) {
308
if (value.type()->type_id() == TypeId::kDecimal &&
0 commit comments