Skip to content

GreptimeDB v1.3.2: DELETE and Query Correctness, Security Fixes

GreptimeDB v1.3.2 is a maintenance release for v1.3. It fixes deleted data reappearing, DELETE not taking effect, precision loss in COPY FROM, and query failures on large field values, and closes access-control gaps in debug endpoints, COPY, and SQL access to object storage.
GreptimeDB v1.3.2: DELETE and Query Correctness, Security Fixes
On this page

We released GreptimeDB v1.3.2 on November 30, 2026. It is a maintenance release for v1.3. We recommend all v1.3 users upgrade, especially if you delete data, store large field values, or let other users run SQL against your instance.

v1.3.0 and v1.3.1 can be upgraded to v1.3.2 in place. A few cases need attention; see Before You Upgrade.

Wrong Query Results ​

  • Deleted data came back. On tables with merge_mode = 'last_non_null', a deleted row could reappear in queries that filter on a field. If you deleted a row and wrote it again with some fields set to NULL, those fields showed the values from before the delete.
  • DELETE reported success but kept the row. This happened on tables partitioned by a field column, such as PARTITION ON COLUMNS (val), including metric engine tables.
  • Repartitioned tables returned errors or duplicate rows. In distributed clusters, ALTER TABLE ADD COLUMN could change a table's primary key order, and a later repartition created regions with the changed order. Queries on those regions failed with primary key has different prefix or, in rarer cases, returned duplicate rows. ADD COLUMN now keeps the key order. Queries on data that is already affected return the error instead of duplicate rows. To handle affected tables, see Before You Upgrade.
  • External tables ignored filters. Queries on external tables could ignore WHERE conditions on primary key and time index columns, so WHERE host = 'b' LIMIT 1 could return a row for another host. ORDER BY ... LIMIT could also return the wrong rows.
  • COPY FROM lost precision. Importing CSV or JSON rounded DECIMAL values with 17 or more significant digits. Importing JSON could also round large BIGINT UNSIGNED values, and values above the BIGINT range could become NULL or fail the import. v1.3.2 imports the exact values. DECIMAL values with more fractional digits than the column's scale are still rounded. DECIMAL values out of the column's range return an error instead of becoming NULL.

Performance ​

In v1.3.0, TopK queries that sort by the time index plus another column, such as ORDER BY ts DESC, event_id DESC LIMIT 10, couldn't skip SST files by time range. v1.3.2 restores this pruning.

Large String and Binary Values ​

With field values of 1 MiB or more, queries on compacted data could fail with Parquet error: index overflow decoding byte array, and compaction could use several GiB of memory. Flush and compaction now size Parquet row groups by data size, about 128 MiB each, instead of by row count alone.

Access Control ​

These changes matter if other people can run SQL or reach the HTTP API of your instance.

  • Debug endpoints. With user_provider configured, the /debug/* endpoints on frontend and standalone, used for log levels, tracing, and CPU and heap profiling, were reachable without credentials. They now require authentication.
  • COPY permissions. COPY exports require read permission in addition to write permission. COPY DATABASE checks every table it actually reads or writes.
  • Object storage from SQL. COPY, COPY DATABASE, EXPORT/IMPORT DATABASE, and external tables can connect to any object storage host. When a statement gives no credentials, they use the server's own credentials from environment variables, credential files, or instance metadata. Two new options restrict this, and their defaults keep the previous behavior.
toml
[query]
# Hosts that object storage in SQL statements may connect to.
# Default: unset, which means no restriction.
remote_allowed_hosts = ["minio.internal:9000"]
# Whether SQL statements may use the server's own credentials.
# Default: true. When false, statements must provide credentials or use OSS allow_anonymous.
allow_server_credentials = false

In a distributed cluster, set both options on frontend and datanode. In standalone mode, set them in the standalone configuration. While remote_allowed_hosts is set, redirects aren't followed and credentials from instance metadata are unavailable. GCS service account keys also need oauth2.googleapis.com, and OSS needs *.oss-<region>.aliyuncs.com. Don't list instance-metadata or internal management services.

Other Changes ​

The Dashboard is updated to v0.14.7. Timestamps in tables are no longer truncated, and PromQL autocomplete and hover tooltips are no longer cut off.

Before You Upgrade ​

Back up your data and configuration, then check these cases:

  • Downgrade. SSTs written by v1.3.2 can require v1.2.0 or later to read. Don't downgrade to v1.1.x or earlier, and don't run those versions alongside v1.3.2.
  • Debug scripts. With user_provider configured, add credentials to scripts that call /debug/*, for example curl -u user:password.
  • Tables with a changed primary key order (distributed clusters only). A table's primary key order changes in two cases. In the first, the primary key lists columns in a different order from the table definition (for example, columns city, device_id with PRIMARY KEY(device_id, city)), and the table later gained columns through ADD COLUMN or tags added automatically on write. In the second, a key column was added with FIRST or AFTER.
    • If the table hasn't been repartitioned since, run ADMIN reconcile_table after upgrading and before the next repartition. It restores the correct key order.
    • If the table has been repartitioned and queries fail with primary key has different prefix, ADMIN reconcile_table can't repair the data files (SSTs) already written. Report it on GitHub Issues.
  • Prometheus unchecked mode. With prom_validation_mode = "unchecked", remote write data with invalid UTF-8 could produce WAL records that can't be read. This mode now decodes like lossy and replaces invalid UTF-8 with U+FFFD.
  • Object storage credentials set in SQL. Validation is stricter. S3 and signed OSS connections must include both the access key ID and the secret access key. Azure account keys need an account name, set explicitly or derived from the endpoint. GCS credential must be a base64-encoded service-account key with private_key and client_email. Existing external tables whose connection options break these rules can't be queried until you correct the options or recreate the table.
  • Custom permission checkers. If your custom permission checker authorizes experimental metric exports, change the grant from database.export to copy.to.
  • Column options. In earlier versions, ALTER TABLE ADD COLUMN dropped the column's COMMENT and COMPRESSION WITH (...) options. Upgrading doesn't restore them on columns that were already added.

Distributed clusters that merge partitions (MERGE PARTITION) need extra steps when upgrading. See the release notes.

Get v1.3.2 ​

For a standalone Docker deployment, the image is greptime/greptimedb:v1.3.2. To upgrade, stop and remove the old container, then start the new image with your existing startup options and data directory. With the default configuration:

shell
docker run -p 127.0.0.1:4000-4003:4000-4003 \
  -v "$(pwd)/greptimedb_data:/greptimedb_data" \
  --name greptime --rm \
  greptime/greptimedb:v1.3.2 standalone start \
  --http-addr 0.0.0.0:4000 \
  --grpc-bind-addr 0.0.0.0:4001 \
  --mysql-addr 0.0.0.0:4002 \
  --postgres-addr 0.0.0.0:4003

See the installation docs for other deployment methods. Installation packages and the full changelog are on the GitHub Release. Report problems on GitHub Issues.

Thanks to the 10 contributors to this release, 4 of whom contributed for the first time. See the full contributor list.

Stay in the loop

Join our community