Starrocks

Latest version: v1.2.0

Safety actively analyzes 688238 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 8 of 20

3.0.2

Release date: June 13, 2023

Improvements

- Predicates in a UNION query can be pushed down after the query is rewritten by an asynchronous materialized view. [23312](https://github.com/StarRocks/starrocks/pull/23312)
- Optimized the [auto tablet distribution policy](https://docs.starrocks.io/en-us/3.0/table_design/Data_distribution#determine-the-number-of-tablets) for tables. [24543](https://github.com/StarRocks/starrocks/pull/24543)
- Removed the dependency of NetworkTime on system clocks, which fixes incorrect NetworkTime caused by inconsistent system clocks across servers. [24858](https://github.com/StarRocks/starrocks/pull/24858)

Bug Fixes

Fixed the following issues:
- Schema change for Primary Key tables is hung if data loading occurs simultaneously with schema change. [23456](https://github.com/StarRocks/starrocks/pull/23456)
- Queries encounter an error when the session variable pipeline_profile_level is set to 0. [23873](https://github.com/StarRocks/starrocks/pull/23873)
- CREATE TABLE encounters an error when cloud_native_storage_type is set to S3.
- LDAP authentication succeeds even when no password is used. [24862](https://github.com/StarRocks/starrocks/pull/24862)
- CANCEL LOAD fails if the table involved in the load job does not exist. [24922](https://github.com/StarRocks/starrocks/pull/24922)

3.0.1

New Features

- [Preview] Supports spilling intermediate computation results of large operators to disks to reduce the memory consumption of large operators. For more information, see [Spill to disk](https://docs.starrocks.io/en-us/3.0/administration/spill_to_disk).
- Routine Load supports loading [Avro-formatted](https://docs.starrocks.io/en-us/3.0/loading/RoutineLoad#load-avro-format-data) data.
- Supports Microsoft [Azure Storage ](https://docs.starrocks.io/en-us/latest/integrations/authenticate_to_azure_storage#authenticate-to-microsoft-azure-storage)(including Azure Blob Storage and Azure Data Lake Storage).

Improvements

- Shared-data clusters support StarRocks external tables.
- Added load_tracking_logs to Information Schema to record recent loading errors.
- Ignores special characters in CREATE TABLE statements. [23885](https://github.com/StarRocks/starrocks/pull/23885)

Bug Fixes
Fixed the following issues:
- Information returned by SHOW CREATE TABLE is incorrect for Primary Key tables. [24237](https://github.com/StarRocks/starrocks/issues/24237)
- BEs may crash during a Routine Load job. [20677](https://github.com/StarRocks/starrocks/issues/20677)
- Null pointer exception (NPE) occurs if you specify unsupported properties when creating a partitioned table. [21374](https://github.com/StarRocks/starrocks/issues/21374)
- Information returned by SHOW TABLE STATUS is incomplete. [24279](https://github.com/StarRocks/starrocks/issues/24279)

3.0.0

Release date: April 28, 2023

New Features

System architecture
- Decouple storage and compute. StarRocks now supports data persistence into S3-compatible object storage, enhancing resource isolation, reducing storage costs, and making compute resources more scalable. Local disks are used as hot data cache for boosting query performance. The query performance of the new shared-data architecture is comparable to the classic architecture (shared-nothing) when local cache is hit. For more information, see [Deploy and use shared-data StarRocks](https://docs.starrocks.io/en-us/3.0/deployment/deploy_shared_data).

Storage engine and data ingestion
- The [AUTO_INCREMENT](https://docs.starrocks.io/en-us/3.0/sql-reference/sql-statements/auto_increment) attribute is supported to provide globally unique IDs, which simplifies data management.
- [Automatic partitioning and partitioning expressions](https://docs.starrocks.io/en-us/3.0/table_design/automatic_partitioning) are supported, which makes partition creation easier to use and more flexible.
- Primary Key tables support more complete [UPDATE](https://docs.starrocks.io/en-us/3.0/sql-reference/sql-statements/data-manipulation/UPDATE) and [DELETE](https://docs.starrocks.io/en-us/3.0/sql-reference/sql-statements/data-manipulation/DELETE#primary-key-tables) syntax, including the use of CTEs and references to multiple tables.
- Added Load Profile for Broker Load and INSERT INTO jobs. You can view the details of a load job by querying the load profile. The usage is the same as [Analyze query profile](https://docs.starrocks.io/en-us/3.0/administration/query_profile).

Data Lake Analytics
- [Preview] Supports Presto/Trino compatible dialect. Presto/Trino's SQL can be automatically rewritten into StarRocks' SQL pattern. For more information, see [the system variable](https://docs.starrocks.io/en-us/3.0/reference/System_variable) sql_dialect.
- [Preview] Supports [JDBC catalogs](https://docs.starrocks.io/en-us/3.0/data_source/catalog/jdbc_catalog).
- Supports using [SET CATALOG](https://docs.starrocks.io/en-us/3.0/sql-reference/sql-statements/data-definition/SET%20CATALOG) to manually switch between catalogs in the current session.

Privileges and security
- Provides a new privilege system with full RBAC functionalities, supporting role inheritance and default roles. For more information, see [Overview of privileges](https://docs.starrocks.io/en-us/3.0/administration/privilege_overview).
- Provides more privilege management objects and more fine-grained privileges. For more information, see [Privileges supported by StarRocks](https://docs.starrocks.io/en-us/3.0/administration/privilege_item).

Query engine
- Allows more queries on joined tables to benefit from the [query cache](https://docs.starrocks.io/en-us/3.0/using_starrocks/query_cache). For example, the query cache now supports Broadcast Join and Bucket Shuffle Join.
- Supports [Global UDFs](https://docs.starrocks.io/en-us/3.0/sql-reference/sql-functions/JAVA_UDF).
- Dynamic adaptive parallelism: StarRocks can automatically adjust the pipeline_dop parameter for query concurrency.

SQL reference
- Added the following privilege-related SQL statements: [SET DEFAULT ROLE](https://docs.starrocks.io/en-us/3.0/sql-reference/sql-statements/account-management/SET_DEFAULT_ROLE), [SET ROLE](https://docs.starrocks.io/en-us/3.0/sql-reference/sql-statements/account-management/SET%20ROLE), [SHOW ROLES](https://docs.starrocks.io/en-us/3.0/sql-reference/sql-statements/account-management/SHOW%20ROLES), and [SHOW USERS](https://docs.starrocks.io/en-us/3.0/sql-reference/sql-statements/account-management/SHOW%20USERS).
- Added the following semi-structured data analysis functions: [map_apply](https://docs.starrocks.io/en-us/3.0/sql-reference/sql-functions/map-functions/map_apply), [map_from_arrays](https://docs.starrocks.io/en-us/3.0/sql-reference/sql-functions/map-functions/map_from_arrays), [map_filter](https://docs.starrocks.io/en-us/3.0/sql-reference/sql-functions/map-functions/map_filter), [transform_keys](https://docs.starrocks.io/en-us/3.0/sql-reference/sql-functions/map-functions/transform_keys), and [transform_values](https://docs.starrocks.io/en-us/3.0/sql-reference/sql-functions/map-functions/transform_values).
[array_agg](https://docs.starrocks.io/en-us/3.0/sql-reference/sql-functions/array-functions/array_agg) supports ORDER BY.
- Window functions [lead](https://docs.starrocks.io/en-us/3.0/sql-reference/sql-functions/Window_function#lead) and [lag](https://docs.starrocks.io/en-us/3.0/sql-reference/sql-functions/Window_function#lag) support IGNORE NULLS.
- Added string functions [replace](https://docs.starrocks.io/en-us/3.0/sql-reference/sql-functions/string-functions/replace), [hex_decode_binary](https://docs.starrocks.io/en-us/3.0/sql-reference/sql-functions/string-functions/hex_decode_binary), and [hex_decode_string()](https://docs.starrocks.io/en-us/3.0/sql-reference/sql-functions/string-functions/hex_decode_string).
- Added encryption functions [base64_decode_binary](https://docs.starrocks.io/en-us/3.0/sql-reference/sql-functions/crytographic-functions/base64_decode_binary) and [base64_decode_string](https://docs.starrocks.io/en-us/3.0/sql-reference/sql-functions/crytographic-functions/base64_decode_string).
- Added math functions [sinh](https://docs.starrocks.io/en-us/3.0/sql-reference/sql-functions/math-functions/sinh), [cosh](https://docs.starrocks.io/en-us/3.0/sql-reference/sql-functions/math-functions/cosh), and [tanh](https://docs.starrocks.io/en-us/3.0/sql-reference/sql-functions/math-functions/tanh).
- Added utility function [current_role](https://docs.starrocks.io/en-us/3.0/sql-reference/sql-functions/utility-functions/current_role).

Improvements
Deployment
- Updated Docker image and the related [Docker deployment document](https://docs.starrocks.io/en-us/3.0/quick_start/deploy_with_docker) for version 3.0. [#20623](https://github.com/StarRocks/starrocks/pull/20623) [#21021](https://github.com/StarRocks/starrocks/pull/21021)

Storage engine and data ingestion
- Supports more CSV parameters for data ingestion, including SKIP_HEADER, TRIM_SPACE, ENCLOSE, and ESCAPE. See [STREAM LOAD](https://docs.starrocks.io/en-us/3.0/sql-reference/sql-statements/data-manipulation/STREAM%20LOAD), [BROKER LOAD](https://docs.starrocks.io/en-us/3.0/sql-reference/sql-statements/data-manipulation/BROKER%20LOAD), and [ROUTINE LOAD](https://docs.starrocks.io/en-us/3.0/sql-reference/sql-statements/data-manipulation/CREATE%20ROUTINE%20LOAD).
- The primary key and sort key are decoupled in [Primary Key tables](https://docs.starrocks.io/en-us/3.0/table_design/table_types/primary_key_table). The sort key can be separately specified in ORDER BY when you create a table.
- Optimized the memory usage of data ingestion into Primary Key tables in scenarios such as large-volume ingestion, partial updates, and persistent primary indexes.
- Supports creating asynchronous INSERT tasks. For more information, see [INSERT](https://docs.starrocks.io/en-us/3.0/loading/InsertInto#load-data-asynchronously-using-insert) and [SUBMIT TASK](https://docs.starrocks.io/en-us/3.0/sql-reference/sql-statements/data-manipulation/SUBMIT%20TASK). [#20609](https://github.com/StarRocks/starrocks/issues/20609)

Materialized view
- Optimized the rewriting capabilities of [materialized views](https://docs.starrocks.io/en-us/3.0/using_starrocks/Materialized_view), including:
- Supports rewrite of View Delta Join, Outer Join, and Cross Join.
- Optimized SQL rewrite of Union with partition.
- Improved materialized view building capabilities: supporting CTE, select *, and Union.
- Optimized the information returned by [SHOW MATERIALIZED VIEWS](https://docs.starrocks.io/en-us/3.0/sql-reference/sql-statements/data-manipulation/SHOW%20MATERIALIZED%20VIEW).
- Supports adding MV partitions in batches, which improves the efficiency of partition addition during materialized view building. [21167](https://github.com/StarRocks/starrocks/pull/21167)

Query engine
- All operators are supported in the pipeline engine. Non-pipeline code will be removed in later versions.
- Improved [Big Query Positioning](https://docs.starrocks.io/en-us/3.0/administration/monitor_manage_big_queries) and added big query log. [SHOW PROCESSLIST](https://docs.starrocks.io/en-us/3.0/sql-reference/sql-statements/Administration/SHOW%20PROCESSLIST) supports viewing CPU and memory information.
- Optimized Outer Join Reorder.
- Optimized error messages in the SQL parsing stage, providing more accurate error positioning and clearer error messages.

Data Lake Analytics
- Optimized metadata statistics collection.
- Supports using [SHOW CREATE TABLE](https://docs.starrocks.io/en-us/3.0/sql-reference/sql-statements/data-manipulation/SHOW%20CREATE%20TABLE) to view the creation statements of the tables that are managed by an external catalog and are stored in Apache Hive™, Apache Iceberg, Apache Hudi, or Delta Lake.

Bug Fixes
- Some URLs in the license header of StarRocks' source file cannot be accessed. [2224](https://github.com/StarRocks/starrocks/issues/2224)
- An unknown error is returned during SELECT queries. [19731](https://github.com/StarRocks/starrocks/issues/19731)
- Supports SHOW/SET CHARACTER. [17480](https://github.com/StarRocks/starrocks/issues/17480)
- When the loaded data exceeds the field length supported by StarRocks, the error message returned is not correct. [14](https://github.com/StarRocks/DataX/issues/14)
- Supports show full fields from 'table'. [17233](https://github.com/StarRocks/starrocks/issues/17233)
- Partition pruning causes MV rewrites to fail. [14641](https://github.com/StarRocks/starrocks/issues/14641)
- MV rewrite fails when the CREATE MATERIALIZED VIEW statement contains count(distinct) and count(distinct) is applied to the DISTRIBUTED BY column. [16558](https://github.com/StarRocks/starrocks/issues/16558)
- FEs fail to start when a VARCHAR column is used as the partitioning column of a materialized view. [19366](https://github.com/StarRocks/starrocks/issues/19366)
- Window functions [LEAD](https://docs.starrocks.io/en-us/3.0/sql-reference/sql-functions/Window_function#lead) and [LAG](https://docs.starrocks.io/en-us/3.0/sql-reference/sql-functions/Window_function#lag) incorrectly handle IGNORE NULLS. [21001](https://github.com/StarRocks/starrocks/pull/21001)
- Adding temporary partitions conflicts with automatic partition creation. [21222](https://github.com/StarRocks/starrocks/issues/21222)

Behavior Change
- The new role-based access control (RBAC) system supports the previous privileges and roles. However, the syntax of related statements such as [GRANT](https://docs.starrocks.io/en-us/3.0/sql-reference/sql-statements/account-management/GRANT) and [REVOKE](https://docs.starrocks.io/en-us/3.0/sql-reference/sql-statements/account-management/REVOKE) is changed.
- Renamed SHOW MATERIALIZED VIEW as [SHOW MATERIALIZED VIEWS](https://docs.starrocks.io/en-us/3.0/sql-reference/sql-statements/data-manipulation/SHOW%20MATERIALIZED%20VIEW).
- Added the following [Reserved keywords](https://docs.starrocks.io/en-us/3.0/sql-reference/sql-statements/keywords): AUTO_INCREMENT, CURRENT_ROLE, DEFERRED, ENCLOSE, ESCAPE, IMMEDIATE, PRIVILEGES, SKIP_HEADER, TRIM_SPACE, VARBINARY.

Upgrade Notes
You can upgrade from v2.5 to v3.0 or downgrade from v3.0 to v2.5.

> In theory, an upgrade from a version earlier than v2.5 is also supported. To ensure system availability, we recommend that you first upgrade your cluster to v2.5 and then to v3.0.

Take note of the following points when you perform a downgrade from v3.0 to v2.5.

BDBJE
StarRocks upgrades the BDB library in v3.0. However, BDBJE cannot be rolled back. You must use BDB library of v3.0 after a downgrade. Perform the following steps:

1. After you replace the FE package with a v2.5 package, copy fe/lib/starrocks-bdb-je-18.3.13.jar of v3.0 to the fe/lib directory of v2.5.

2. Delete fe/lib/je-7.*.jar.

Privilege system
The new RBAC privilege system is used by default after you upgrade to v3.0. You can only downgrade to v2.5.

After a downgrade, run [ALTER SYSTEM CREATE IMAGE](https://docs.starrocks.io/en-us/3.0/sql-reference/sql-statements/Administration/ALTER%20SYSTEM) to create a new image and wait for the new image to be synchronized to all follower FEs. If you do not run this command, some of the downgrade operations may fail. This command is supported from 2.5.3 and later.

For details about the differences between the privilege system of v2.5 and v3.0, see "Upgrade notes" in [Privileges supported by StarRocks](https://docs.starrocks.io/en-us/3.0/administration/privilege_item).

3.0.0rc02

Improvements
- Updated Docker image and the related Docker deployment document for version 3.0. ([20623](https://github.com/StarRocks/starrocks/pull/20623) [#21021](https://github.com/StarRocks/starrocks/pull/21021))
- Supports asynchronous INSERT tasks. ([20609](https://github.com/StarRocks/starrocks/issues/20609))
- Supports adding MV partitions in batches, which improves the efficiency of partition addition during MV building. ([21167](https://github.com/StarRocks/starrocks/pull/21167))
Bug Fixes
Fixed the following issues:
- FEs fail to start when a VARCHAR column is used as the partitioning column of a materialized view. ([19366](https://github.com/StarRocks/starrocks/issues/19366))
- Window functions LEAD() and LAG() incorrectly handle IGNORE NULLS. ([21001](https://github.com/StarRocks/starrocks/pull/21001))
- Adding temporary partitions conflicts with automatic partition creation. ([21222](https://github.com/StarRocks/starrocks/issues/21222))

3.0.0rc01

New Features
Architecture
- Decouple storage and compute. StarRocks now supports data persistence into S3-compatible object storage, enhancing resource isolation, reducing storage costs, and making compute resources more scalable. Local disks are used as hot data cache for boosting query performance. The query performance of the new shared-data architecture is comparable to the classic architecture (shared-nothing) when local cache is hit.

Storage engine and data ingestion
- The [AUTO_INCREMENT](../sql-reference/sql-statements/auto_increment.md) attribute is supported to provide globally unique IDs, which simplifies data management.
- [Automatic partitioning and partitioning expressions](../table_design/automatic_partitioning.md) are supported, which makes partition creation easier to use and more flexible.
- Primary Key tables support more complete [UPDATE](../sql-reference/sql-statements/data-manipulation/UPDATE.md) and [DELETE](../sql-reference/sql-statements/data-manipulation/DELETE.md) syntax, including the use of CTEs and references to multiple tables.
- Added Load Profile for Broker Load and INSERT INTO jobs. You can view the details of a load job by querying the load profile. The usage is the same as [Analyze query profile](https://docs.starrocks.io/en-us/latest/administration/query_profile).

Data Lake Analytics
- [Preview] Supports Presto/Trino compatible dialect. Presto/Trino's SQL can be automatically rewritten into StarRocks' SQL pattern. For more information, see [the system variable](../reference/System_variable.md) sql_dialect.
- [Preview] Supports [JDBC catalogs](../data_source/catalog/jdbc_catalog.md).
- Supports [global UDFs](../sql-reference/sql-functions/JAVA_UDF.md).
- Supports using [SET CATALOG](../sql-reference/sql-statements/data-definition/SET%20CATALOG.md) to manually switch between catalogs in the current session.
Privileges and Security
- Provides a new privilege system with full RBAC functionalities, supporting role inheritance and default roles.
- Provides more privilege management objects and more fine-grained privileges.
Query engine
- [Preview] Supports operator spilling for large queries, which can use disk space to ensure stable running of queries in case of insufficient memory.
- Allows more queries on joined tables to benefit from the [query cache](../using_starrocks/query_cache.md). For example, the query cache now supports aggregate queries on multiple tables that are joined by using bucket shuffle joins and broadcast joins.
- Dynamic adaptive parallelism: StarRocks can automatically adjust the pipeline_dop parameter for query concurrency.
Functions for semi-structured data analysis
- Added functions map_apply(), map_filter(), transform_keys(), and transform_values().
- array_agg() supports ORDER BY.
- Added the string function replace().
Improvements
Storage engine and data ingestion
- Supports more CSV parameters for data ingestion, including SKIP_HEADER, TRIM_SPACE, ENCLOSE, and ESCAPE. See [STREAM LOAD](../sql-reference/sql-statements/data-manipulation/STREAM%20LOAD.md), [BROKER LOAD](../sql-reference/sql-statements/data-manipulation/BROKER%20LOAD.md) and [ROUTINE LOAD](../sql-reference/sql-statements/data-manipulation/CREATE%20ROUTINE%20LOAD.md).
- The primary key and sort key are decoupled in [Primary Key tables](../table_design/Data_model.mdprimary-key-model). The sort key can be separately specified in ORDER BY.
- Optimized the memory usage of data ingestion into Primary Key tables in scenarios such as large-volume ingestion, partial updates, and persistent primary indexes.
Materialized View
- Optimized the rewriting capabilities of materialized views, including:
- Supports rewrite of View Delta Join, Outer Join, and Cross Join.
- Optimized SQL rewrite of Union with partition.
- Improved materialized view building capabilities: supporting CTE, select *, and Union.
- Optimized the information returned by SHOW MATERIALIZED VIEWS.
Query engine
- All operators are supported in the pipeline engine. Non-pipeline code will be removed in later versions.
- Improved big query positioning and added big query log. SHOW PROCESSLIST supports viewing CPU and memory information.
- Optimized Outer Join Reorder.
- Optimized error messages in the SQL parsing stage, providing more accurate error positioning and clearer error messages.
Data Lake Analytics
- Optimized metadata statistics collection.
- Supports using [SHOW CREATE TABLE](../sql-reference/sql-statements/data-manipulation/SHOW%20CREATE%20TABLE.md) to query the schema information of an external table and using [SHOW CREATE CATALOG](../sql-reference/sql-statements/data-manipulation/SHOW%20CREATE%20CATALOG.md) to query the creation statement of an external catalog.
Functions
- Window functions lead() and lag() support IGNORE NULLS.
Bug Fixes
- Some URLs in the license header of StarRocks' source file cannot be accessed. [2224](https://github.com/StarRocks/starrocks/issues/2224)
- An unknown error is returned during SELECT queries. [19731](https://github.com/StarRocks/starrocks/issues/19731)
- Supports SHOW/SET CHARACTER. [17480](https://github.com/StarRocks/starrocks/issues/17480)
- When the loaded data exceeds the field length supported by StarRocks, the error message returned is not correct. [14](https://github.com/StarRocks/DataX/issues/14)
- Supports show full fields from 'table'. [17233](https://github.com/StarRocks/starrocks/issues/17233)
- Partition pruning causes MV rewrites to fail. [14641](https://github.com/StarRocks/starrocks/issues/14641)
- MV rewrite fails when the CREATE MATERIALIZED VIEW statement contains count(distinct) and count(distinct) is applied to the DISTRIBUTED BY column. [16558](https://github.com/StarRocks/starrocks/issues/16558)
Behavior Change
The new role-based access control (RBAC) system is backward compatible with the previous privilege system. However, the syntax of related statements such as GRANT and REVOKE is changed. For more information, see SQL Reference > User Account Management.

2.5.22

Release date: June 20, 2024

Improvements

- Optimized a partition check logic used for building query execution plan, significantly reducing the time consumption of complex queries that involve multiple tables. [46781](https://github.com/StarRocks/starrocks/pull/46781)

Bug Fixes

Fixed the following issues:

- Function Call does not handle child errors correctly. [42590](https://github.com/StarRocks/starrocks/pull/42590)
- The internal data statistics were not cleaned up regularly, causing inaccurate estimated information and thereby inefficient query plans. This will cause a drop in query performance and a surge in memory usage. [45839](https://github.com/StarRocks/starrocks/pull/45839)
- Using a stale column histogram may lead to the Division by Zero exception. [45614](https://github.com/StarRocks/starrocks/pull/45614)

Page 8 of 20

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.