跳到主要内容

v1.3.2

· 阅读需 7 分钟

Release date: November 30, 2026

GreptimeDB v1.3.2 fixes DELETE and query correctness issues, numeric precision loss during imports, and COPY authorization checks. It also adds remote storage access controls and bundles Dashboard v0.14.7.

👍 Highlights​

Security​

  • query.remote_allowed_hosts restricts the hosts that SQL object-storage operations can reach, and query.allow_server_credentials controls whether those operations can use the server's credentials. The host list is empty (unrestricted) and server credentials are allowed by default; explicit connection credentials now undergo stricter validation. (#10627)
  • With user_provider configured, frontend and standalone /debug/* endpoints require authentication. COPY exports require read permission in addition to write permission, and database COPY checks the tables it actually reads or writes. (#10592, #10375)
  • Prometheus remote write no longer constructs unchecked UTF-8 strings in unchecked mode, preventing unreadable WAL records. Vector accessors now check bounds before reading array values. (#10593, #10594)

Query and DELETE correctness​

Fixes these incorrect results:

  • With merge_mode = 'last_non_null', deleted rows reappear when a field filter is applied, and deleted field values reappear after a row is reinserted with NULL fields. (#10707, #10717, #10726)
  • DELETE on a table partitioned by a non-primary-key column reports success but leaves the row in place. (#10710)
  • On file engine tables, filters on primary key and time index columns can be dropped, and ORDER BY ... LIMIT can return the wrong rows. (#10547)
  • A time index IN list that mixes literals and other expressions prunes matching rows. (#10357)
  • SSTs with a different dense primary key order are merged without deduplication, so COUNT and SUM can overcount. (#10326)

Large string and binary fields​

Flush and compaction use smaller row groups for wide rows to reduce memory use and avoid Parquet byte-array decoding failures. Sizing targets 128 MiB per row group using estimated row widths; unevenly sized rows can exceed that target. (#10528, #10585)

Numeric precision in COPY FROM​

COPY FROM preserves numeric precision when importing DECIMAL columns from CSV or JSON and BIGINT UNSIGNED columns from JSON. DECIMAL values still round to the column's scale; out-of-range values now return an error instead of becoming NULL. (#10560)

Dashboard v0.14.7​

Table views allocate enough width for formatted timestamps, and the Flow list keeps action columns at their declared width when fitting the table to its container. PromQL completion and hover tooltips no longer get clipped by the editor or covered by the results pane. (Dashboard #678, Dashboard #680, Dashboard #677)

Upgrade notes​

  • SSTs written by v1.3.2 can contain index segments that span row groups and require v1.2.0 or later readers. Do not mix v1.3.2 with v1.1.x or earlier readers, or downgrade to those versions. (#10528, #10585)
  • For tables whose primary key order changed after an earlier ADD COLUMN, run ADMIN reconcile_table only when the regions have consistent metadata. Reconciliation restores table metadata; it does not repair SSTs written with a different key order. (#10591, #10251)
  • Before merging partitions, compact regions whose SST partition expressions differ from the region's expression, including old SSTs with no recorded expression. If repartition has entered staging, abort it before compaction; enterprise shared SSTs require table compaction. (#10646)
  • Complete datanode upgrades before running merge repartitions with v1.3.2 metasrv: older datanodes reject the new ownership precheck. Splits and one-to-one repartitions do not run this check. (#10646)
  • To restrict SQL access to remote object storage, configure query.remote_allowed_hosts and query.allow_server_credentials on frontend and datanode services, or standalone. By default, the host list is empty (unrestricted) and server credentials are allowed. (#10627)
  • A nonempty query.remote_allowed_hosts list disables HTTP redirects and checks credential requests too; include required credential-service hosts, such as oauth2.googleapis.com, but do not allow instance-metadata or internal management services. With query.allow_server_credentials = false, supply credentials in connection options or use OSS anonymous access. (#10627)
  • In earlier versions, ALTER TABLE ADD COLUMN dropped COMMENT and COMPRESSION WITH (...) options. Upgrading does not restore these options on columns added before the fix. (#10556)

Breaking changes​

  • With user_provider configured, frontend and standalone /debug/* requests require credentials. Update profiling and diagnostic scripts accordingly. (#10592)
  • COPY exports require read permission through copy.to in addition to write permission, and database COPY checks the actual source or destination tables. Custom permission checkers for experimental metric exports must replace database.export grants with copy.to; continue_on_error does not bypass permission failures. (#10375)
  • Prometheus prom_validation_mode = "unchecked" now decodes like lossy, replacing invalid UTF-8 with U+FFFD to prevent unreadable WAL records. Existing configurations remain accepted. (#10593)
  • SST reads with mismatched dense primary key order fail with primary key has different prefix instead of returning incorrect results. This check does not apply to sparse primary keys. (#10326)
  • Numeric COPY FROM imports reject DECIMAL overflow instead of converting it to NULL. (#10560)
  • Explicit S3 and signed OSS connections require both access-key fields; an S3 session token also requires both fields. Azure account keys require an account name, supplied explicitly or derived from the endpoint. (#10627)
  • Explicit GCS credential values must be base64-encoded service-account keys with private_key and client_email; other credential types are rejected. Existing external tables with rejected connection options must have those options corrected or be recreated before they can be scanned. (#10627)

🚀 Features​

🐛 Bug Fixes​

  • fix(servers)!: validate UTF-8 in unchecked Prometheus validation mode by @killme2008 in #10593
  • fix!: restrict object storage access from SQL statements by @killme2008 in #10627
  • fix(recordbatch): treat -0.0 and +0.0 as equal in SimpleFilterEvaluator by @dayan02dev in #10443
  • fix(servers): report the dryrun row limit instead of "data is required" by @dayan02dev in #10491
  • fix(auth): enforce COPY export read and database table permissions by @killme2008 in #10375
  • fix(sql): keep column options in ALTER TABLE ADD COLUMN by @killme2008 in #10556
  • fix(table): restore dynamic statistics pruning for nullable keys by @discord9 in #10502
  • fix(servers): require authentication for debug endpoints by @killme2008 in #10592
  • fix(datatypes): bounds-check Vector::get and get_ref by @killme2008 in #10594
  • fix(table): keep the primary key order when adding columns by @killme2008 in #10591
  • fix(query): correct filtering and ordering for file engine scans by @fengys1996 in #10547
  • fix: keep exact DECIMAL and BIGINT UNSIGNED values in COPY FROM csv and json by @SAMARTHJAISWAL in #10560
  • fix(meta): preserve table column order and primary key indices during reconciliation by @Tyagiquamar in #10251
  • fix(mito2): size old SSTs from size statistics and move the downgrade target to v1.2.0 by @killme2008 in #10585
  • fix(mito): refresh the removed-file count when GC clears its records by @discord9 in #10636
  • fix(mito2): require a region to own its files before a remap by @discord9 in #10646
  • fix(table): do not extract time range from mixed IN lists by @discord9 in #10357
  • fix(mito2): treat a primary key order change as incompatible by @discord9 in #10326
  • fix(mito): defer field filters for last_non_null scans by @evenyag in #10707
  • fix(delete): route deletes using partition columns on value-partitioned tables by @zaidrain06 in #10710
  • fix(mito): keep deleted values out of flat last_non_null reads by @dayan02dev in #10726
  • fix(mito): keep delete markers in time series memtable last_non_null dedup by @vishalkotak in #10717

⚡ Performance​

  • perf(mito2): bound row group bytes and skip statistics for large field values by @killme2008 in #10528

New Contributors​

All Contributors​

We would like to thank the following contributors from the GreptimeDB community:

@SAMARTHJAISWAL, @Tyagiquamar, @dayan02dev, @discord9, @evenyag, @fengys1996, @killme2008, @sunchanglong, @vishalkotak, @zaidrain06

Full changelog: https://github.com/GreptimeTeam/greptimedb/compare/v1.3.1...v1.3.2