You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by GitBox <gi...@apache.org> on 2022/04/01 09:44:50 UTC
[GitHub] [incubator-doris] qidaye opened a new pull request #8808: [feature](cold-hot) support s3 resource
qidaye opened a new pull request #8808:
URL: https://github.com/apache/incubator-doris/pull/8808
# Proposed changes
issue:#8807
1. Support create s3 resource
2. Support create OLAP table with s3 resource
3. Add `storage_cold_medium` and `remote_storage_resource` in `DataProperty`.
4. Support for modifying a single data property
## Problem Summary:
Describe the overview of changes.
## Checklist(Required)
1. Does it affect the original behavior: (Yes/No/I Don't know)
5. Has unit tests been added: (Yes/No/No Need)
6. Has document been added or modified: (Yes/No/No Need)
7. Does it need to update dependencies: (Yes/No)
8. Are there any changes that cannot be rolled back: (Yes/No)
## Further comments
If this is a relatively large or complex change, kick off the discussion at [dev@doris.apache.org](mailto:dev@doris.apache.org) by explaining why you chose the solution you did and what alternatives you considered, etc...
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
[GitHub] [incubator-doris] qidaye commented on a change in pull request #8808: [feature](cold-hot) support s3 resource
Posted by GitBox <gi...@apache.org>.
qidaye commented on a change in pull request #8808:
URL: https://github.com/apache/incubator-doris/pull/8808#discussion_r840502481
##########
File path: docs/en/sql-reference/sql-statements/Data Definition/CREATE TABLE.md
##########
@@ -296,9 +296,11 @@ Syntax:
```
PROPERTIES (
"storage_medium" = "[SSD|HDD]",
+ ["storage_cold_medium" = "[HDD|S3]"],
+ ["remote_storage_resource" = "xxx"],
["storage_cooldown_time" = "yyyy-MM-dd HH:mm:ss"],
["replication_num" = "3"],
- ["replication_allocation" = "xxx"]
+ ["replication_allocation" = "xxx"]
Review comment:
You can refer to #5902
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
[GitHub] [incubator-doris] qidaye commented on a change in pull request #8808: [feature](cold-hot) support s3 resource
Posted by GitBox <gi...@apache.org>.
qidaye commented on a change in pull request #8808:
URL: https://github.com/apache/incubator-doris/pull/8808#discussion_r840484421
##########
File path: docs/en/sql-reference/sql-statements/Data Definition/CREATE TABLE.md
##########
@@ -296,9 +296,11 @@ Syntax:
```
PROPERTIES (
"storage_medium" = "[SSD|HDD]",
+ ["storage_cold_medium" = "[HDD|S3]"],
+ ["remote_storage_resource" = "xxx"],
["storage_cooldown_time" = "yyyy-MM-dd HH:mm:ss"],
["replication_num" = "3"],
- ["replication_allocation" = "xxx"]
+ ["replication_allocation" = "xxx"]
Review comment:
It's same as `replication_num`, which has nothing to do with this PR.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
[GitHub] [incubator-doris] yiguolei commented on a change in pull request #8808: [feature](cold-hot) support s3 resource
Posted by GitBox <gi...@apache.org>.
yiguolei commented on a change in pull request #8808:
URL: https://github.com/apache/incubator-doris/pull/8808#discussion_r840492446
##########
File path: docs/en/sql-reference/sql-statements/Data Definition/ALTER TABLE.md
##########
@@ -71,6 +71,8 @@ under the License.
1) The following attributes of the modified partition are currently supported.
- storage_medium
- storage_cooldown_time
+ - storage_cold_medium
Review comment:
Do not need storage cold medium, If user specified storage resource then it implies the cold storage is S3 or HDFS.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
[GitHub] [incubator-doris] yiguolei commented on a change in pull request #8808: [feature](cold-hot) support s3 resource
Posted by GitBox <gi...@apache.org>.
yiguolei commented on a change in pull request #8808:
URL: https://github.com/apache/incubator-doris/pull/8808#discussion_r840491824
##########
File path: docs/en/sql-reference/sql-statements/Data Definition/CREATE TABLE.md
##########
@@ -296,9 +296,11 @@ Syntax:
```
PROPERTIES (
"storage_medium" = "[SSD|HDD]",
+ ["storage_cold_medium" = "[HDD|S3]"],
+ ["remote_storage_resource" = "xxx"],
Review comment:
I don't think we need the conception of remote_storage_resource, if there is remote_storage_resource, there maybe a local_storage_resource.
And we could create a table on S3 or HDFS directly not in cold and hot scenario but in decouple compute and storage scenario.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
[GitHub] [incubator-doris] yiguolei commented on a change in pull request #8808: [feature](cold-hot) support s3 resource
Posted by GitBox <gi...@apache.org>.
yiguolei commented on a change in pull request #8808:
URL: https://github.com/apache/incubator-doris/pull/8808#discussion_r840489145
##########
File path: docs/en/sql-reference/sql-statements/Data Definition/CREATE TABLE.md
##########
@@ -296,9 +296,11 @@ Syntax:
```
PROPERTIES (
"storage_medium" = "[SSD|HDD]",
+ ["storage_cold_medium" = "[HDD|S3]"],
+ ["remote_storage_resource" = "xxx"],
["storage_cooldown_time" = "yyyy-MM-dd HH:mm:ss"],
["replication_num" = "3"],
- ["replication_allocation" = "xxx"]
+ ["replication_allocation" = "xxx"]
Review comment:
if it is the same with replication_num why add this param?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
[GitHub] [incubator-doris] yiguolei commented on a change in pull request #8808: [feature](cold-hot) support s3 resource
Posted by GitBox <gi...@apache.org>.
yiguolei commented on a change in pull request #8808:
URL: https://github.com/apache/incubator-doris/pull/8808#discussion_r840468260
##########
File path: docs/en/sql-reference/sql-statements/Data Definition/CREATE TABLE.md
##########
@@ -296,9 +296,11 @@ Syntax:
```
PROPERTIES (
"storage_medium" = "[SSD|HDD]",
+ ["storage_cold_medium" = "[HDD|S3]"],
+ ["remote_storage_resource" = "xxx"],
["storage_cooldown_time" = "yyyy-MM-dd HH:mm:ss"],
["replication_num" = "3"],
- ["replication_allocation" = "xxx"]
+ ["replication_allocation" = "xxx"]
Review comment:
what does replication_allocation means?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
[GitHub] [incubator-doris] yiguolei commented on a change in pull request #8808: [feature](cold-hot) support s3 resource
Posted by GitBox <gi...@apache.org>.
yiguolei commented on a change in pull request #8808:
URL: https://github.com/apache/incubator-doris/pull/8808#discussion_r840494326
##########
File path: fe/fe-core/src/main/java/org/apache/doris/catalog/DataProperty.java
##########
@@ -75,11 +94,20 @@ public static DataProperty read(DataInput in) throws IOException {
public void write(DataOutput out) throws IOException {
Review comment:
Use gson to do serialize and deserialize
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
[GitHub] [incubator-doris] yiguolei commented on a change in pull request #8808: [feature](cold-hot) support s3 resource
Posted by GitBox <gi...@apache.org>.
yiguolei commented on a change in pull request #8808:
URL: https://github.com/apache/incubator-doris/pull/8808#discussion_r840509556
##########
File path: docs/en/sql-reference/sql-statements/Data Definition/ALTER TABLE.md
##########
@@ -71,6 +71,8 @@ under the License.
1) The following attributes of the modified partition are currently supported.
- storage_medium
- storage_cooldown_time
+ - storage_cold_medium
Review comment:
yeah
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
[GitHub] [incubator-doris] yiguolei commented on pull request #8808: [feature](cold-hot) support s3 resource
Posted by GitBox <gi...@apache.org>.
yiguolei commented on pull request #8808:
URL: https://github.com/apache/incubator-doris/pull/8808#issuecomment-1085740592
Could you please provide the sql references? For example how to define S3 resource and how to use it to create table
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
[GitHub] [incubator-doris] yiguolei commented on a change in pull request #8808: [feature](cold-hot) support s3 resource
Posted by GitBox <gi...@apache.org>.
yiguolei commented on a change in pull request #8808:
URL: https://github.com/apache/incubator-doris/pull/8808#discussion_r840993203
##########
File path: docs/en/sql-reference/sql-statements/Data Definition/CREATE TABLE.md
##########
@@ -296,9 +296,11 @@ Syntax:
```
PROPERTIES (
"storage_medium" = "[SSD|HDD]",
+ ["storage_cold_medium" = "[HDD|S3]"],
+ ["remote_storage_resource" = "xxx"],
["storage_cooldown_time" = "yyyy-MM-dd HH:mm:ss"],
["replication_num" = "3"],
- ["replication_allocation" = "xxx"]
+ ["replication_allocation" = "xxx"]
Review comment:
I see.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
[GitHub] [incubator-doris] yiguolei commented on a change in pull request #8808: [feature](cold-hot) support s3 resource
Posted by GitBox <gi...@apache.org>.
yiguolei commented on a change in pull request #8808:
URL: https://github.com/apache/incubator-doris/pull/8808#discussion_r840469202
##########
File path: docs/en/sql-reference/sql-statements/Data Definition/CREATE TABLE.md
##########
@@ -405,68 +409,89 @@ Syntax:
"storage_cooldown_time" = "2015-06-04 00:00:00"
);
```
-
-3. Create an olap table, with range partitioned, distributed by hash. Records with the same key exist at the same time, set the initial storage medium and cooling time, use default column storage.
-
-1) LESS THAN
-
+
+3. Create an olap table, distributed by hash, with aggregation type. Also set storage medium and cooldown time.
+ Setting up remote storage resource and cold data storage media.
```
- CREATE TABLE example_db.table_range
+ CREATE TABLE example_db.table_hash
(
- k1 DATE,
- k2 INT,
- k3 SMALLINT,
- v1 VARCHAR(2048),
- v2 DATETIME DEFAULT "2014-02-04 15:36:00"
+ k1 BIGINT,
+ k2 LARGEINT,
+ v1 VARCHAR(2048) REPLACE,
+ v2 SMALLINT SUM DEFAULT "10"
)
ENGINE=olap
- DUPLICATE KEY(k1, k2, k3)
- PARTITION BY RANGE (k1)
- (
- PARTITION p1 VALUES LESS THAN ("2014-01-01"),
- PARTITION p2 VALUES LESS THAN ("2014-06-01"),
- PARTITION p3 VALUES LESS THAN ("2014-12-01")
- )
- DISTRIBUTED BY HASH(k2) BUCKETS 32
+ AGGREGATE KEY(k1, k2)
+ DISTRIBUTED BY HASH (k1, k2) BUCKETS 32
PROPERTIES(
- "storage_medium" = "SSD", "storage_cooldown_time" = "2015-06-04 00:00:00"
+ "storage_medium" = "SSD",
+ "storage_cold_medium" = "S3",
+ "remote_storage_resource" = "remote_s3",
Review comment:
cold_storage_resource = "xxx,xxxx,xxxx" it should support a array, because S3 bucket's bandwidth is too small, maybe we need multiple bucket to extend the bandwidth.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
[GitHub] [incubator-doris] yiguolei commented on a change in pull request #8808: [feature](cold-hot) support s3 resource
Posted by GitBox <gi...@apache.org>.
yiguolei commented on a change in pull request #8808:
URL: https://github.com/apache/incubator-doris/pull/8808#discussion_r840992446
##########
File path: docs/en/sql-reference/sql-statements/Data Definition/ALTER TABLE.md
##########
@@ -71,6 +71,8 @@ under the License.
1) The following attributes of the modified partition are currently supported.
- storage_medium
- storage_cooldown_time
+ - storage_cold_medium
Review comment:
If BE have ssd,hdd,and s3 resource, how to define the operation from ssd->hdd->s3?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
[GitHub] [incubator-doris] qidaye commented on pull request #8808: [feature](cold-hot) support s3 resource
Posted by GitBox <gi...@apache.org>.
qidaye commented on pull request #8808:
URL: https://github.com/apache/incubator-doris/pull/8808#issuecomment-1085771383
> Could you please provide the sql references? For example how to define S3 resource and how to use it to create table
You can find the syntax in issue #8807
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
[GitHub] [incubator-doris] yiguolei commented on a change in pull request #8808: [feature](cold-hot) support s3 resource
Posted by GitBox <gi...@apache.org>.
yiguolei commented on a change in pull request #8808:
URL: https://github.com/apache/incubator-doris/pull/8808#discussion_r840499518
##########
File path: docs/en/sql-reference/sql-statements/Data Definition/CREATE TABLE.md
##########
@@ -405,68 +409,89 @@ Syntax:
"storage_cooldown_time" = "2015-06-04 00:00:00"
);
```
-
-3. Create an olap table, with range partitioned, distributed by hash. Records with the same key exist at the same time, set the initial storage medium and cooling time, use default column storage.
-
-1) LESS THAN
-
+
+3. Create an olap table, distributed by hash, with aggregation type. Also set storage medium and cooldown time.
+ Setting up remote storage resource and cold data storage media.
```
- CREATE TABLE example_db.table_range
+ CREATE TABLE example_db.table_hash
(
- k1 DATE,
- k2 INT,
- k3 SMALLINT,
- v1 VARCHAR(2048),
- v2 DATETIME DEFAULT "2014-02-04 15:36:00"
+ k1 BIGINT,
+ k2 LARGEINT,
+ v1 VARCHAR(2048) REPLACE,
+ v2 SMALLINT SUM DEFAULT "10"
)
ENGINE=olap
- DUPLICATE KEY(k1, k2, k3)
- PARTITION BY RANGE (k1)
- (
- PARTITION p1 VALUES LESS THAN ("2014-01-01"),
- PARTITION p2 VALUES LESS THAN ("2014-06-01"),
- PARTITION p3 VALUES LESS THAN ("2014-12-01")
- )
- DISTRIBUTED BY HASH(k2) BUCKETS 32
+ AGGREGATE KEY(k1, k2)
+ DISTRIBUTED BY HASH (k1, k2) BUCKETS 32
PROPERTIES(
- "storage_medium" = "SSD", "storage_cooldown_time" = "2015-06-04 00:00:00"
+ "storage_medium" = "SSD",
+ "storage_cold_medium" = "S3",
+ "remote_storage_resource" = "remote_s3",
Review comment:
If user could specify multi resources then he do not care the bandwidth in the future. If there is only one resource he need to monitor and optimize the resource usage by using alter table clause. It is too hard for the user.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
[GitHub] [incubator-doris] qidaye commented on a change in pull request #8808: [feature](cold-hot) support s3 resource
Posted by GitBox <gi...@apache.org>.
qidaye commented on a change in pull request #8808:
URL: https://github.com/apache/incubator-doris/pull/8808#discussion_r840483368
##########
File path: docs/en/sql-reference/sql-statements/Data Definition/CREATE TABLE.md
##########
@@ -296,9 +296,11 @@ Syntax:
```
PROPERTIES (
"storage_medium" = "[SSD|HDD]",
+ ["storage_cold_medium" = "[HDD|S3]"],
+ ["remote_storage_resource" = "xxx"],
Review comment:
`remote_storage_resource` must be used with `storage_cold_medium`. Standalone use is not supported.
There is a check in `PropertyAnalyzer`.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
[GitHub] [incubator-doris] yiguolei commented on a change in pull request #8808: [feature](cold-hot) support s3 resource
Posted by GitBox <gi...@apache.org>.
yiguolei commented on a change in pull request #8808:
URL: https://github.com/apache/incubator-doris/pull/8808#discussion_r840468063
##########
File path: docs/en/sql-reference/sql-statements/Data Definition/CREATE TABLE.md
##########
@@ -296,9 +296,11 @@ Syntax:
```
PROPERTIES (
"storage_medium" = "[SSD|HDD]",
+ ["storage_cold_medium" = "[HDD|S3]"],
+ ["remote_storage_resource" = "xxx"],
Review comment:
just use storage_resource= xxx , if it is defined then it implies that the cold storage medium type is s3 or hdd.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
[GitHub] [incubator-doris] qidaye commented on a change in pull request #8808: [feature](cold-hot) support s3 resource
Posted by GitBox <gi...@apache.org>.
qidaye commented on a change in pull request #8808:
URL: https://github.com/apache/incubator-doris/pull/8808#discussion_r840505468
##########
File path: docs/en/sql-reference/sql-statements/Data Definition/ALTER TABLE.md
##########
@@ -71,6 +71,8 @@ under the License.
1) The following attributes of the modified partition are currently supported.
- storage_medium
- storage_cooldown_time
+ - storage_cold_medium
Review comment:
There is also a old logic data migration from SSD to HDD, we use both `storage_cold_medium` and `remote_storage_resource` to distinguish them
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
[GitHub] [incubator-doris] qidaye commented on a change in pull request #8808: [feature](cold-hot) support s3 resource
Posted by GitBox <gi...@apache.org>.
qidaye commented on a change in pull request #8808:
URL: https://github.com/apache/incubator-doris/pull/8808#discussion_r840507301
##########
File path: fe/fe-core/src/main/java/org/apache/doris/catalog/DataProperty.java
##########
@@ -75,11 +94,20 @@ public static DataProperty read(DataInput in) throws IOException {
public void write(DataOutput out) throws IOException {
Review comment:
`DataProperty` is a already exist class. I can not change the serialize/deserialize to GSON since the backward compatible
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
[GitHub] [incubator-doris] github-actions[bot] commented on pull request #8808: [feature](cold-hot) support s3 resource
Posted by GitBox <gi...@apache.org>.
github-actions[bot] commented on pull request #8808:
URL: https://github.com/apache/incubator-doris/pull/8808#issuecomment-1085698643
PR approved by anyone and no changes requested.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
[GitHub] [incubator-doris] qidaye commented on a change in pull request #8808: [feature](cold-hot) support s3 resource
Posted by GitBox <gi...@apache.org>.
qidaye commented on a change in pull request #8808:
URL: https://github.com/apache/incubator-doris/pull/8808#discussion_r840496665
##########
File path: docs/en/sql-reference/sql-statements/Data Definition/CREATE TABLE.md
##########
@@ -405,68 +409,89 @@ Syntax:
"storage_cooldown_time" = "2015-06-04 00:00:00"
);
```
-
-3. Create an olap table, with range partitioned, distributed by hash. Records with the same key exist at the same time, set the initial storage medium and cooling time, use default column storage.
-
-1) LESS THAN
-
+
+3. Create an olap table, distributed by hash, with aggregation type. Also set storage medium and cooldown time.
+ Setting up remote storage resource and cold data storage media.
```
- CREATE TABLE example_db.table_range
+ CREATE TABLE example_db.table_hash
(
- k1 DATE,
- k2 INT,
- k3 SMALLINT,
- v1 VARCHAR(2048),
- v2 DATETIME DEFAULT "2014-02-04 15:36:00"
+ k1 BIGINT,
+ k2 LARGEINT,
+ v1 VARCHAR(2048) REPLACE,
+ v2 SMALLINT SUM DEFAULT "10"
)
ENGINE=olap
- DUPLICATE KEY(k1, k2, k3)
- PARTITION BY RANGE (k1)
- (
- PARTITION p1 VALUES LESS THAN ("2014-01-01"),
- PARTITION p2 VALUES LESS THAN ("2014-06-01"),
- PARTITION p3 VALUES LESS THAN ("2014-12-01")
- )
- DISTRIBUTED BY HASH(k2) BUCKETS 32
+ AGGREGATE KEY(k1, k2)
+ DISTRIBUTED BY HASH (k1, k2) BUCKETS 32
PROPERTIES(
- "storage_medium" = "SSD", "storage_cooldown_time" = "2015-06-04 00:00:00"
+ "storage_medium" = "SSD",
+ "storage_cold_medium" = "S3",
+ "remote_storage_resource" = "remote_s3",
Review comment:
Use the same resource when creating a table to facilitate data management.
Since the `remote_storage_resource` is partition level, user can change the resource when creating a new partition or modify by `ALTER TABEL` clause. In this way, a table can use multiple buckets.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
[GitHub] [incubator-doris] yiguolei commented on a change in pull request #8808: [feature](cold-hot) support s3 resource
Posted by GitBox <gi...@apache.org>.
yiguolei commented on a change in pull request #8808:
URL: https://github.com/apache/incubator-doris/pull/8808#discussion_r840509190
##########
File path: fe/fe-core/src/main/java/org/apache/doris/catalog/DataProperty.java
##########
@@ -75,11 +94,20 @@ public static DataProperty read(DataInput in) throws IOException {
public void write(DataOutput out) throws IOException {
Review comment:
....
for read method, you could use
if (meta version > 108)
{
gson.readxxx
}
else
{
read field
read filed
...
}
for write method, you could use
if (meta version > 108)
{
gson.writexxx
}
else
{
write field
write field
....
}
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org