You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by "sohardforaname (via GitHub)" <gi...@apache.org> on 2023/08/17 11:13:35 UTC
[GitHub] [doris] sohardforaname opened a new pull request, #23121: [Feature](Nereids)support insert into values for Nereids
sohardforaname opened a new pull request, #23121:
URL: https://github.com/apache/doris/pull/23121
## Proposed changes
Issue Number: close #xxx
<!--Describe your changes.-->
## 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] [doris] sohardforaname commented on pull request #23121: [Feature](Nereids)support insert into values for Nereids
Posted by "sohardforaname (via GitHub)" <gi...@apache.org>.
sohardforaname commented on PR #23121:
URL: https://github.com/apache/doris/pull/23121#issuecomment-1702113647
run buildall
--
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] [doris] hello-stephen commented on pull request #23121: [Feature](Nereids)support insert into values for Nereids
Posted by "hello-stephen (via GitHub)" <gi...@apache.org>.
hello-stephen commented on PR #23121:
URL: https://github.com/apache/doris/pull/23121#issuecomment-1696969321
(From new machine)TeamCity pipeline, clickbench performance test result:
the sum of best hot time: 47.18 seconds
stream load tsv: 545 seconds loaded 74807831229 Bytes, about 130 MB/s
stream load json: 20 seconds loaded 2358488459 Bytes, about 112 MB/s
stream load orc: 64 seconds loaded 1101869774 Bytes, about 16 MB/s
stream load parquet: 31 seconds loaded 861443392 Bytes, about 26 MB/s
insert into select: 29.4 seconds inserted 10000000 Rows, about 340K ops/s
storage size: 17162194703 Bytes
--
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] [doris] hello-stephen commented on pull request #23121: [Feature](Nereids)support insert into values for Nereids
Posted by "hello-stephen (via GitHub)" <gi...@apache.org>.
hello-stephen commented on PR #23121:
URL: https://github.com/apache/doris/pull/23121#issuecomment-1700848900
(From new machine)TeamCity pipeline, clickbench performance test result:
the sum of best hot time: 48.26 seconds
stream load tsv: 530 seconds loaded 74807831229 Bytes, about 134 MB/s
stream load json: 21 seconds loaded 2358488459 Bytes, about 107 MB/s
stream load orc: 64 seconds loaded 1101869774 Bytes, about 16 MB/s
stream load parquet: 31 seconds loaded 861443392 Bytes, about 26 MB/s
insert into select: 28.9 seconds inserted 10000000 Rows, about 346K ops/s
storage size: 17162244273 Bytes
--
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] [doris] hello-stephen commented on pull request #23121: [Feature](Nereids)support insert into values for Nereids
Posted by "hello-stephen (via GitHub)" <gi...@apache.org>.
hello-stephen commented on PR #23121:
URL: https://github.com/apache/doris/pull/23121#issuecomment-1683521626
(From new machine)TeamCity pipeline, clickbench performance test result:
the sum of best hot time: 46.55 seconds
stream load tsv: 547 seconds loaded 74807831229 Bytes, about 130 MB/s
stream load json: 20 seconds loaded 2358488459 Bytes, about 112 MB/s
stream load orc: 65 seconds loaded 1101869774 Bytes, about 16 MB/s
stream load parquet: 32 seconds loaded 861443392 Bytes, about 25 MB/s
insert into select: 29.5 seconds inserted 10000000 Rows, about 338K ops/s
storage size: 17162167831 Bytes
--
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] [doris] hello-stephen commented on pull request #23121: [Feature](Nereids)support insert into values for Nereids
Posted by "hello-stephen (via GitHub)" <gi...@apache.org>.
hello-stephen commented on PR #23121:
URL: https://github.com/apache/doris/pull/23121#issuecomment-1697523761
(From new machine)TeamCity pipeline, clickbench performance test result:
the sum of best hot time: 48.66 seconds
stream load tsv: 537 seconds loaded 74807831229 Bytes, about 132 MB/s
stream load json: 20 seconds loaded 2358488459 Bytes, about 112 MB/s
stream load orc: 65 seconds loaded 1101869774 Bytes, about 16 MB/s
stream load parquet: 32 seconds loaded 861443392 Bytes, about 25 MB/s
insert into select: 28.8 seconds inserted 10000000 Rows, about 347K ops/s
storage size: 17161925922 Bytes
--
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] [doris] sohardforaname commented on pull request #23121: [Feature](Nereids)support insert into values for Nereids
Posted by "sohardforaname (via GitHub)" <gi...@apache.org>.
sohardforaname commented on PR #23121:
URL: https://github.com/apache/doris/pull/23121#issuecomment-1695774641
run buildall
--
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] [doris] sohardforaname commented on pull request #23121: [Feature](Nereids)support values table
Posted by "sohardforaname (via GitHub)" <gi...@apache.org>.
sohardforaname commented on PR #23121:
URL: https://github.com/apache/doris/pull/23121#issuecomment-1717057754
run buildall
--
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] [doris] doris-robot commented on pull request #23121: [Feature](Nereids)support values table
Posted by "doris-robot (via GitHub)" <gi...@apache.org>.
doris-robot commented on PR #23121:
URL: https://github.com/apache/doris/pull/23121#issuecomment-1720805923
(From new machine)TeamCity pipeline, clickbench performance test result:
the sum of best hot time: 46.34 seconds
stream load tsv: 598 seconds loaded 74807831229 Bytes, about 119 MB/s
stream load json: 20 seconds loaded 2358488459 Bytes, about 112 MB/s
stream load orc: 64 seconds loaded 1101869774 Bytes, about 16 MB/s
stream load parquet: 32 seconds loaded 861443392 Bytes, about 25 MB/s
insert into select: 29.0 seconds inserted 10000000 Rows, about 344K ops/s
storage size: 17162473460 Bytes
--
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] [doris] sohardforaname commented on pull request #23121: [Feature](Nereids)support insert into values for Nereids
Posted by "sohardforaname (via GitHub)" <gi...@apache.org>.
sohardforaname commented on PR #23121:
URL: https://github.com/apache/doris/pull/23121#issuecomment-1711518380
run buildall
--
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] [doris] doris-robot commented on pull request #23121: [Feature](Nereids)support values table
Posted by "doris-robot (via GitHub)" <gi...@apache.org>.
doris-robot commented on PR #23121:
URL: https://github.com/apache/doris/pull/23121#issuecomment-1716887956
(From new machine)TeamCity pipeline, clickbench performance test result:
the sum of best hot time: 45.95 seconds
stream load tsv: 598 seconds loaded 74807831229 Bytes, about 119 MB/s
stream load json: 20 seconds loaded 2358488459 Bytes, about 112 MB/s
stream load orc: 64 seconds loaded 1101869774 Bytes, about 16 MB/s
stream load parquet: 31 seconds loaded 861443392 Bytes, about 26 MB/s
insert into select: 29.1 seconds inserted 10000000 Rows, about 343K ops/s
storage size: 17162462505 Bytes
--
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] [doris] doris-robot commented on pull request #23121: [Feature](Nereids)support insert into values for Nereids
Posted by "doris-robot (via GitHub)" <gi...@apache.org>.
doris-robot commented on PR #23121:
URL: https://github.com/apache/doris/pull/23121#issuecomment-1716850013
(From new machine)TeamCity pipeline, clickbench performance test result:
the sum of best hot time: 46.29 seconds
stream load tsv: 597 seconds loaded 74807831229 Bytes, about 119 MB/s
stream load json: 20 seconds loaded 2358488459 Bytes, about 112 MB/s
stream load orc: 65 seconds loaded 1101869774 Bytes, about 16 MB/s
stream load parquet: 31 seconds loaded 861443392 Bytes, about 26 MB/s
insert into select: 29.0 seconds inserted 10000000 Rows, about 344K ops/s
storage size: 17162378470 Bytes
--
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] [doris] doris-robot commented on pull request #23121: [Feature](Nereids)support insert into values for Nereids
Posted by "doris-robot (via GitHub)" <gi...@apache.org>.
doris-robot commented on PR #23121:
URL: https://github.com/apache/doris/pull/23121#issuecomment-1715101381
(From new machine)TeamCity pipeline, clickbench performance test result:
the sum of best hot time: 51.04 seconds
stream load tsv: 604 seconds loaded 74807831229 Bytes, about 118 MB/s
stream load json: 21 seconds loaded 2358488459 Bytes, about 107 MB/s
stream load orc: 65 seconds loaded 1101869774 Bytes, about 16 MB/s
stream load parquet: 32 seconds loaded 861443392 Bytes, about 25 MB/s
insert into select: 29.0 seconds inserted 10000000 Rows, about 344K ops/s
storage size: 17162431616 Bytes
--
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] [doris] sohardforaname commented on pull request #23121: [Feature](Nereids)support insert into values for Nereids
Posted by "sohardforaname (via GitHub)" <gi...@apache.org>.
sohardforaname commented on PR #23121:
URL: https://github.com/apache/doris/pull/23121#issuecomment-1685879796
run buildall
--
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] [doris] sohardforaname commented on pull request #23121: [Feature](Nereids)support insert into values for Nereids
Posted by "sohardforaname (via GitHub)" <gi...@apache.org>.
sohardforaname commented on PR #23121:
URL: https://github.com/apache/doris/pull/23121#issuecomment-1696876383
run buildall
--
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] [doris] sohardforaname commented on pull request #23121: [Feature](Nereids)support insert into values for Nereids
Posted by "sohardforaname (via GitHub)" <gi...@apache.org>.
sohardforaname commented on PR #23121:
URL: https://github.com/apache/doris/pull/23121#issuecomment-1695410127
run buildall
--
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] [doris] sohardforaname commented on pull request #23121: [Feature](Nereids)support values table
Posted by "sohardforaname (via GitHub)" <gi...@apache.org>.
sohardforaname commented on PR #23121:
URL: https://github.com/apache/doris/pull/23121#issuecomment-1718937369
run buildall
--
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] [doris] doris-robot commented on pull request #23121: [Feature](Nereids)support values table
Posted by "doris-robot (via GitHub)" <gi...@apache.org>.
doris-robot commented on PR #23121:
URL: https://github.com/apache/doris/pull/23121#issuecomment-1718981179
(From new machine)TeamCity pipeline, clickbench performance test result:
the sum of best hot time: 49.28 seconds
stream load tsv: 598 seconds loaded 74807831229 Bytes, about 119 MB/s
stream load json: 20 seconds loaded 2358488459 Bytes, about 112 MB/s
stream load orc: 64 seconds loaded 1101869774 Bytes, about 16 MB/s
stream load parquet: 32 seconds loaded 861443392 Bytes, about 25 MB/s
insert into select: 28.8 seconds inserted 10000000 Rows, about 347K ops/s
storage size: 17162360921 Bytes
--
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] [doris] sohardforaname commented on a diff in pull request #23121: [Feature](Nereids)support insert into values for Nereids
Posted by "sohardforaname (via GitHub)" <gi...@apache.org>.
sohardforaname commented on code in PR #23121:
URL: https://github.com/apache/doris/pull/23121#discussion_r1318302034
##########
fe/fe-core/src/main/java/org/apache/doris/nereids/rules/analysis/BindSink.java:
##########
@@ -116,8 +118,13 @@ public List<Rule> buildRules() {
"mv column's ref column cannot be null");
Expression parsedExpression = expressionParser.parseExpression(
column.getDefineExpr().toSql());
- Expression boundExpression = SlotReplacer.INSTANCE
+ Expression boundSlotExpression = SlotReplacer.INSTANCE
.replace(parsedExpression, columnToOutput);
+ // the boundSlotExpression is an expression whose slots are bound but function
+ // may not be bound, we have to bind it again.
+ // for example: to_bitmap.
+ Expression boundExpression = FunctionBinder.INSTANCE.rewrite(
+ boundSlotExpression, new ExpressionRewriteContext(ctx.cascadesContext));
Review Comment:
yes, it's from p0.
--
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] [doris] sohardforaname commented on pull request #23121: [Feature](Nereids)support insert into values for Nereids
Posted by "sohardforaname (via GitHub)" <gi...@apache.org>.
sohardforaname commented on PR #23121:
URL: https://github.com/apache/doris/pull/23121#issuecomment-1682162640
run buildall
--
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] [doris] hello-stephen commented on pull request #23121: [Feature](Nereids)support insert into values for Nereids
Posted by "hello-stephen (via GitHub)" <gi...@apache.org>.
hello-stephen commented on PR #23121:
URL: https://github.com/apache/doris/pull/23121#issuecomment-1695476024
(From new machine)TeamCity pipeline, clickbench performance test result:
the sum of best hot time: 46.87 seconds
stream load tsv: 540 seconds loaded 74807831229 Bytes, about 132 MB/s
stream load json: 20 seconds loaded 2358488459 Bytes, about 112 MB/s
stream load orc: 64 seconds loaded 1101869774 Bytes, about 16 MB/s
stream load parquet: 31 seconds loaded 861443392 Bytes, about 26 MB/s
insert into select: 28.8 seconds inserted 10000000 Rows, about 347K ops/s
storage size: 17162045377 Bytes
--
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] [doris] doris-robot commented on pull request #23121: [Feature](Nereids) support values table
Posted by "doris-robot (via GitHub)" <gi...@apache.org>.
doris-robot commented on PR #23121:
URL: https://github.com/apache/doris/pull/23121#issuecomment-1721070859
(From new machine)TeamCity pipeline, clickbench performance test result:
the sum of best hot time: 50.48 seconds
stream load tsv: 591 seconds loaded 74807831229 Bytes, about 120 MB/s
stream load json: 20 seconds loaded 2358488459 Bytes, about 112 MB/s
stream load orc: 65 seconds loaded 1101869774 Bytes, about 16 MB/s
stream load parquet: 32 seconds loaded 861443392 Bytes, about 25 MB/s
insert into select: 28.7 seconds inserted 10000000 Rows, about 348K ops/s
storage size: 17162200417 Bytes
--
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] [doris] morrySnow commented on a diff in pull request #23121: [Feature](Nereids)support values table
Posted by "morrySnow (via GitHub)" <gi...@apache.org>.
morrySnow commented on code in PR #23121:
URL: https://github.com/apache/doris/pull/23121#discussion_r1323884956
##########
fe/fe-core/src/main/java/org/apache/doris/nereids/parser/LogicalPlanBuilder.java:
##########
@@ -1662,6 +1683,16 @@ public Expression visitParenthesizedExpression(ParenthesizedExpressionContext ct
return getExpression(ctx.expression());
}
+ @Override
+ public Expression visitRowConstructor(RowConstructorContext ctx) {
+ return new Row(ctx.namedExpression().stream()
Review Comment:
since we do not support (a, b, c) to construct a struct, return a `OneRowRelation` in from `RowConstructorContext` is better
##########
fe/fe-core/src/main/java/org/apache/doris/nereids/parser/LogicalPlanBuilder.java:
##########
@@ -2322,4 +2356,20 @@ private String parseConstant(ConstantContext context) {
public Object visitCollate(CollateContext ctx) {
return visit(ctx.primaryExpression());
}
+
+ private static class Row extends Expression {
Review Comment:
why resolve this comment, but no comment on Row be added?
##########
fe/fe-core/src/main/antlr4/org/apache/doris/nereids/DorisParser.g4:
##########
@@ -396,6 +397,11 @@ aggTypeDef
tabletList
: TABLET LEFT_PAREN tabletIdList+=INTEGER_VALUE (COMMA tabletIdList+=INTEGER_VALUE)* RIGHT_PAREN
;
+
+
+inlineTable
+ : VALUES rowConstructor (COMMA rowConstructor)* tableAlias
Review Comment:
i think `tableAlias` should be removed
--
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] [doris] sohardforaname commented on pull request #23121: [Feature](Nereids)support values table
Posted by "sohardforaname (via GitHub)" <gi...@apache.org>.
sohardforaname commented on PR #23121:
URL: https://github.com/apache/doris/pull/23121#issuecomment-1720885098
run buildall
--
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] [doris] hello-stephen commented on pull request #23121: [Feature](Nereids)support insert into values for Nereids
Posted by "hello-stephen (via GitHub)" <gi...@apache.org>.
hello-stephen commented on PR #23121:
URL: https://github.com/apache/doris/pull/23121#issuecomment-1701000398
(From new machine)TeamCity pipeline, clickbench performance test result:
the sum of best hot time: 48.91 seconds
stream load tsv: 550 seconds loaded 74807831229 Bytes, about 129 MB/s
stream load json: 20 seconds loaded 2358488459 Bytes, about 112 MB/s
stream load orc: 65 seconds loaded 1101869774 Bytes, about 16 MB/s
stream load parquet: 31 seconds loaded 861443392 Bytes, about 26 MB/s
insert into select: 29.0 seconds inserted 10000000 Rows, about 344K ops/s
storage size: 17161981297 Bytes
--
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] [doris] sohardforaname commented on pull request #23121: [Feature](Nereids)support insert into values for Nereids
Posted by "sohardforaname (via GitHub)" <gi...@apache.org>.
sohardforaname commented on PR #23121:
URL: https://github.com/apache/doris/pull/23121#issuecomment-1685535599
run buildall
--
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] [doris] hello-stephen commented on pull request #23121: [Feature](Nereids)support insert into values for Nereids
Posted by "hello-stephen (via GitHub)" <gi...@apache.org>.
hello-stephen commented on PR #23121:
URL: https://github.com/apache/doris/pull/23121#issuecomment-1685586479
(From new machine)TeamCity pipeline, clickbench performance test result:
the sum of best hot time: 45.19 seconds
stream load tsv: 542 seconds loaded 74807831229 Bytes, about 131 MB/s
stream load json: 20 seconds loaded 2358488459 Bytes, about 112 MB/s
stream load orc: 66 seconds loaded 1101869774 Bytes, about 15 MB/s
stream load parquet: 31 seconds loaded 861443392 Bytes, about 26 MB/s
insert into select: 29.3 seconds inserted 10000000 Rows, about 341K ops/s
storage size: 17162096413 Bytes
--
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] [doris] hello-stephen commented on pull request #23121: [Feature](Nereids)support insert into values for Nereids
Posted by "hello-stephen (via GitHub)" <gi...@apache.org>.
hello-stephen commented on PR #23121:
URL: https://github.com/apache/doris/pull/23121#issuecomment-1685925643
(From new machine)TeamCity pipeline, clickbench performance test result:
the sum of best hot time: 47.54 seconds
stream load tsv: 541 seconds loaded 74807831229 Bytes, about 131 MB/s
stream load json: 20 seconds loaded 2358488459 Bytes, about 112 MB/s
stream load orc: 65 seconds loaded 1101869774 Bytes, about 16 MB/s
stream load parquet: 31 seconds loaded 861443392 Bytes, about 26 MB/s
insert into select: 29.7 seconds inserted 10000000 Rows, about 336K ops/s
storage size: 17162379543 Bytes
--
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] [doris] sohardforaname commented on pull request #23121: [Feature](Nereids)support insert into values for Nereids
Posted by "sohardforaname (via GitHub)" <gi...@apache.org>.
sohardforaname commented on PR #23121:
URL: https://github.com/apache/doris/pull/23121#issuecomment-1683451974
run buildall
--
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] [doris] sohardforaname commented on pull request #23121: [Feature](Nereids)support insert into values for Nereids
Posted by "sohardforaname (via GitHub)" <gi...@apache.org>.
sohardforaname commented on PR #23121:
URL: https://github.com/apache/doris/pull/23121#issuecomment-1715043598
run buildall
--
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] [doris] sohardforaname commented on pull request #23121: [Feature](Nereids)support values table
Posted by "sohardforaname (via GitHub)" <gi...@apache.org>.
sohardforaname commented on PR #23121:
URL: https://github.com/apache/doris/pull/23121#issuecomment-1717062575
run buildall
--
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] [doris] hello-stephen commented on pull request #23121: [Feature](Nereids)support insert into values for Nereids
Posted by "hello-stephen (via GitHub)" <gi...@apache.org>.
hello-stephen commented on PR #23121:
URL: https://github.com/apache/doris/pull/23121#issuecomment-1700566253
(From new machine)TeamCity pipeline, clickbench performance test result:
the sum of best hot time: 51.06 seconds
stream load tsv: 546 seconds loaded 74807831229 Bytes, about 130 MB/s
stream load json: 20 seconds loaded 2358488459 Bytes, about 112 MB/s
stream load orc: 64 seconds loaded 1101869774 Bytes, about 16 MB/s
stream load parquet: 31 seconds loaded 861443392 Bytes, about 26 MB/s
insert into select: 29.2 seconds inserted 10000000 Rows, about 342K ops/s
storage size: 17162188181 Bytes
--
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] [doris] sohardforaname commented on pull request #23121: [Feature](Nereids)support insert into values for Nereids
Posted by "sohardforaname (via GitHub)" <gi...@apache.org>.
sohardforaname commented on PR #23121:
URL: https://github.com/apache/doris/pull/23121#issuecomment-1698916851
run buildall
--
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] [doris] morrySnow commented on a diff in pull request #23121: [Feature](Nereids)support insert into values for Nereids
Posted by "morrySnow (via GitHub)" <gi...@apache.org>.
morrySnow commented on code in PR #23121:
URL: https://github.com/apache/doris/pull/23121#discussion_r1314845287
##########
fe/fe-core/src/main/antlr4/org/apache/doris/nereids/DorisParser.g4:
##########
@@ -438,6 +445,7 @@ primaryExpression
| identifier #columnReference
| base=primaryExpression DOT fieldName=identifier #dereference
| LEFT_PAREN expression RIGHT_PAREN #parenthesizedExpression
+ | LEFT_PAREN namedExpression (COMMA namedExpression)+ RIGHT_PAREN #rowConstructor
Review Comment:
`rowConstructor` should put ahead than `subqueryExpression`
##########
fe/fe-core/src/main/antlr4/org/apache/doris/nereids/DorisParser.g4:
##########
@@ -438,6 +445,7 @@ primaryExpression
| identifier #columnReference
| base=primaryExpression DOT fieldName=identifier #dereference
| LEFT_PAREN expression RIGHT_PAREN #parenthesizedExpression
+ | LEFT_PAREN namedExpression (COMMA namedExpression)+ RIGHT_PAREN #rowConstructor
Review Comment:
branch name aka(#xxx) should be align with other lines
##########
fe/fe-core/src/main/java/org/apache/doris/nereids/parser/LogicalPlanBuilder.java:
##########
@@ -2322,4 +2356,20 @@ private String parseConstant(ConstantContext context) {
public Object visitCollate(CollateContext ctx) {
return visit(ctx.primaryExpression());
}
+
+ private static class Row extends Expression {
+ public Row(List<Expression> children) {
Review Comment:
```suggestion
public Row(List<NamedExpression> children) {
```
##########
fe/fe-core/src/main/java/org/apache/doris/nereids/parser/LogicalPlanBuilder.java:
##########
@@ -2322,4 +2356,20 @@ private String parseConstant(ConstantContext context) {
public Object visitCollate(CollateContext ctx) {
return visit(ctx.primaryExpression());
}
+
+ private static class Row extends Expression {
Review Comment:
add comment to explain what this class does
##########
fe/fe-core/src/main/java/org/apache/doris/nereids/parser/LogicalPlanBuilder.java:
##########
@@ -1634,6 +1663,11 @@ public Expression visitParenthesizedExpression(ParenthesizedExpressionContext ct
return getExpression(ctx.expression());
}
+ @Override
+ public Expression visitRowConstructor(RowConstructorContext ctx) {
+ return new Row(ctx.namedExpression().stream().map(this::visitNamedExpression).collect(Collectors.toList()));
Review Comment:
```suggestion
return new Row(ctx.namedExpression().stream().map(this::visitNamedExpression).collect(ImmutableList.toImmutableList()));
```
##########
regression-test/suites/nereids_p0/insert_into_table/insert_values.groovy:
##########
@@ -0,0 +1,118 @@
+// Licensed to the Apache Software Foundation (ASF) under one
+// or more contributor license agreements. See the NOTICE file
+// distributed with this work for additional information
+// regarding copyright ownership. The ASF licenses this file
+// to you under the Apache License, Version 2.0 (the
+// "License"); you may not use this file except in compliance
+// with the License. You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing,
+// software distributed under the License is distributed on an
+// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+// KIND, either express or implied. See the License for the
+// specific language governing permissions and limitations
+// under the License.
+
+suite('nereids_insert_into_values') {
+ sql 'set enable_nereids_planner=true'
+ sql 'set enable_fallback_to_original_planner=false'
+ sql 'set enable_nereids_dml=true'
+ sql 'set enable_strict_consistency_dml=true'
+
+ sql 'use nereids_insert_into_table_test'
+
+ def t1 = 'value_t1'
+ def t2 = 'value_t2'
+ def t3 = 'value_t3'
+
+ sql "drop table if exists ${t1}"
+ sql "drop table if exists ${t2}"
+ sql "drop table if exists ${t3}"
+
+ sql """
+ create table ${t1} (
+ id int,
+ id1 int,
+ c1 bigint,
+ c2 string,
+ c3 double,
+ c4 date
+ ) unique key (id, id1)
+ distributed by hash(id, id1) buckets 13
+ properties(
+ 'replication_num'='1',
+ "function_column.sequence_col" = "c4"
Review Comment:
add mor table cases
##########
regression-test/suites/nereids_p0/insert_into_table/insert_values.groovy:
##########
@@ -0,0 +1,118 @@
+// Licensed to the Apache Software Foundation (ASF) under one
+// or more contributor license agreements. See the NOTICE file
+// distributed with this work for additional information
+// regarding copyright ownership. The ASF licenses this file
+// to you under the Apache License, Version 2.0 (the
+// "License"); you may not use this file except in compliance
+// with the License. You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing,
+// software distributed under the License is distributed on an
+// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+// KIND, either express or implied. See the License for the
+// specific language governing permissions and limitations
+// under the License.
+
+suite('nereids_insert_into_values') {
+ sql 'set enable_nereids_planner=true'
+ sql 'set enable_fallback_to_original_planner=false'
+ sql 'set enable_nereids_dml=true'
+ sql 'set enable_strict_consistency_dml=true'
+
+ sql 'use nereids_insert_into_table_test'
+
+ def t1 = 'value_t1'
+ def t2 = 'value_t2'
+ def t3 = 'value_t3'
+
+ sql "drop table if exists ${t1}"
+ sql "drop table if exists ${t2}"
+ sql "drop table if exists ${t3}"
+
+ sql """
+ create table ${t1} (
+ id int,
+ id1 int,
+ c1 bigint,
+ c2 string,
+ c3 double,
+ c4 date
+ ) unique key (id, id1)
+ distributed by hash(id, id1) buckets 13
+ properties(
+ 'replication_num'='1',
+ "function_column.sequence_col" = "c4"
+ );
+ """
+
+ sql """
+ create table ${t2} (
+ id int,
+ c1 bigint,
+ c2 string,
+ c3 double,
+ c4 date
+ ) unique key (id)
+ distributed by hash(id) buckets 13
+ properties(
+ 'replication_num'='1'
+ );
+ """
+
+ sql """
+ create table ${t3} (
+ id int
+ ) distributed by hash(id) buckets 13
+ properties(
+ 'replication_num'='1'
+ );
+ """
+
+ sql """
+ INSERT INTO ${t1} VALUES
+ (1, 10, 1, '1', 1.0, '2000-01-01'),
Review Comment:
add some line with function call, or other expression rather than just literal
##########
fe/fe-core/src/main/java/org/apache/doris/nereids/parser/LogicalPlanBuilder.java:
##########
@@ -700,6 +705,30 @@ public LogicalPlan visitRegularQuerySpecification(RegularQuerySpecificationConte
});
}
+ @Override
+ public LogicalPlan visitInlineTable(InlineTableContext ctx) {
+ List<List<Expression>> exprs = ctx.expression().stream()
+ .map(e -> {
+ Object o = visit(e);
+ if (o instanceof Row) {
+ return (((Row) o).children());
+ } else if (o instanceof Expression) {
+ return ImmutableList.of(((Expression) o));
+ } else {
+ throw new AnalysisException("invalid inline table");
+ }
+ }).collect(Collectors.toList());
+ LogicalPlan relation = new LogicalOneRowRelation(
+ StatementScopeIdGenerator.newRelationId(),
+ exprs.get(0).stream().map(e -> new Alias(e, e.toSql())).collect(Collectors.toList()));
+ for (List<Expression> exprList : exprs.subList(1, exprs.size())) {
Review Comment:
```suggestion
for (List<Expression> exprs : exprs.subList(1, exprs.size())) {
```
##########
fe/fe-core/src/main/java/org/apache/doris/nereids/parser/LogicalPlanBuilder.java:
##########
@@ -700,6 +705,30 @@ public LogicalPlan visitRegularQuerySpecification(RegularQuerySpecificationConte
});
}
+ @Override
+ public LogicalPlan visitInlineTable(InlineTableContext ctx) {
+ List<List<Expression>> exprs = ctx.expression().stream()
+ .map(e -> {
+ Object o = visit(e);
+ if (o instanceof Row) {
+ return (((Row) o).children());
+ } else if (o instanceof Expression) {
+ return ImmutableList.of(((Expression) o));
+ } else {
+ throw new AnalysisException("invalid inline table");
+ }
+ }).collect(Collectors.toList());
+ LogicalPlan relation = new LogicalOneRowRelation(
+ StatementScopeIdGenerator.newRelationId(),
+ exprs.get(0).stream().map(e -> new Alias(e, e.toSql())).collect(Collectors.toList()));
+ for (List<Expression> exprList : exprs.subList(1, exprs.size())) {
Review Comment:
`subList` is expensive, use `for (int i = 1; i < ...)` instead
##########
fe/fe-core/src/main/java/org/apache/doris/nereids/parser/LogicalPlanBuilder.java:
##########
@@ -700,6 +705,30 @@ public LogicalPlan visitRegularQuerySpecification(RegularQuerySpecificationConte
});
}
+ @Override
+ public LogicalPlan visitInlineTable(InlineTableContext ctx) {
+ List<List<Expression>> exprs = ctx.expression().stream()
Review Comment:
```suggestion
List<List<Expression>> exprsList = ctx.expression().stream()
```
##########
regression-test/suites/nereids_p0/insert_into_table/insert_values.groovy:
##########
@@ -0,0 +1,118 @@
+// Licensed to the Apache Software Foundation (ASF) under one
+// or more contributor license agreements. See the NOTICE file
+// distributed with this work for additional information
+// regarding copyright ownership. The ASF licenses this file
+// to you under the Apache License, Version 2.0 (the
+// "License"); you may not use this file except in compliance
+// with the License. You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing,
+// software distributed under the License is distributed on an
+// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+// KIND, either express or implied. See the License for the
+// specific language governing permissions and limitations
+// under the License.
+
+suite('nereids_insert_into_values') {
+ sql 'set enable_nereids_planner=true'
+ sql 'set enable_fallback_to_original_planner=false'
+ sql 'set enable_nereids_dml=true'
+ sql 'set enable_strict_consistency_dml=true'
+
+ sql 'use nereids_insert_into_table_test'
+
+ def t1 = 'value_t1'
+ def t2 = 'value_t2'
+ def t3 = 'value_t3'
+
+ sql "drop table if exists ${t1}"
+ sql "drop table if exists ${t2}"
+ sql "drop table if exists ${t3}"
+
+ sql """
+ create table ${t1} (
+ id int,
+ id1 int,
+ c1 bigint,
+ c2 string,
+ c3 double,
+ c4 date
+ ) unique key (id, id1)
+ distributed by hash(id, id1) buckets 13
+ properties(
+ 'replication_num'='1',
+ "function_column.sequence_col" = "c4"
+ );
+ """
+
+ sql """
+ create table ${t2} (
+ id int,
+ c1 bigint,
+ c2 string,
+ c3 double,
+ c4 date
+ ) unique key (id)
+ distributed by hash(id) buckets 13
+ properties(
+ 'replication_num'='1'
+ );
+ """
+
+ sql """
+ create table ${t3} (
+ id int
+ ) distributed by hash(id) buckets 13
+ properties(
+ 'replication_num'='1'
+ );
+ """
+
+ sql """
+ INSERT INTO ${t1} VALUES
+ (1, 10, 1, '1', 1.0, '2000-01-01'),
+ (2, 20, 2, '2', 2.0, '2000-01-02'),
+ (3, 30, 3, '3', 3.0, '2000-01-03');
+ """
+
+ sql """
+ INSERT INTO ${t2} VALUES
+ (1, 10, '10', 10.0, '2000-01-10'),
+ (2, 20, '20', 20.0, '2000-01-20'),
+ (3, 30, '30', 30.0, '2000-01-30'),
+ (4, 4, '4', 4.0, '2000-01-04'),
+ (5, 5, '5', 5.0, '2000-01-05');
+ """
+
+ sql """
+ INSERT INTO ${t3} VALUES
+ (1),
+ (4),
+ (5);
+ """
+
+ sql "sync"
+ qt_sql_1 "select * from ${t1}, ${t2}, ${t3} order by ${t1}.id, ${t1}.id1, ${t2}.id, ${t3}.id"
Review Comment:
do not use meaningless name, such as `sql_1`. u should use the case name to explain what do u want test
##########
fe/fe-core/src/main/java/org/apache/doris/nereids/rules/analysis/BindSink.java:
##########
@@ -116,8 +118,13 @@ public List<Rule> buildRules() {
"mv column's ref column cannot be null");
Expression parsedExpression = expressionParser.parseExpression(
column.getDefineExpr().toSql());
- Expression boundExpression = SlotReplacer.INSTANCE
+ Expression boundSlotExpression = SlotReplacer.INSTANCE
.replace(parsedExpression, columnToOutput);
+ // the boundSlotExpression is an expression whose slots are bound but function
+ // may not be bound, we have to bind it again.
+ // for example: to_bitmap.
+ Expression boundExpression = FunctionBinder.INSTANCE.rewrite(
+ boundSlotExpression, new ExpressionRewriteContext(ctx.cascadesContext));
Review Comment:
do u add case for this?
##########
fe/fe-core/src/main/java/org/apache/doris/nereids/parser/LogicalPlanBuilder.java:
##########
@@ -700,6 +705,30 @@ public LogicalPlan visitRegularQuerySpecification(RegularQuerySpecificationConte
});
}
+ @Override
+ public LogicalPlan visitInlineTable(InlineTableContext ctx) {
+ List<List<Expression>> exprs = ctx.expression().stream()
+ .map(e -> {
+ Object o = visit(e);
+ if (o instanceof Row) {
+ return (((Row) o).children());
+ } else if (o instanceof Expression) {
+ return ImmutableList.of(((Expression) o));
+ } else {
+ throw new AnalysisException("invalid inline table");
+ }
+ }).collect(Collectors.toList());
+ LogicalPlan relation = new LogicalOneRowRelation(
+ StatementScopeIdGenerator.newRelationId(),
+ exprs.get(0).stream().map(e -> new Alias(e, e.toSql())).collect(Collectors.toList()));
+ for (List<Expression> exprList : exprs.subList(1, exprs.size())) {
+ relation = new LogicalUnion(Qualifier.ALL, ImmutableList.of(relation, new LogicalOneRowRelation(
+ StatementScopeIdGenerator.newRelationId(),
+ exprList.stream().map(e -> new Alias(e, e.toSql())).collect(Collectors.toList()))));
Review Comment:
```suggestion
exprList.stream().map(e -> new Alias(e, e.toSql())).collect(ImmutableList.toImmutableList()))));
```
##########
fe/fe-core/src/main/java/org/apache/doris/qe/StmtExecutor.java:
##########
@@ -646,6 +646,9 @@ public void executeByLegacy(TUniqueId queryId) throws Exception {
profile.getSummaryProfile().setQueryBeginTime();
context.setStmtId(STMT_ID_GENERATOR.incrementAndGet());
context.setQueryId(queryId);
+ if (parsedStmt == null) {
+ parseByLegacy();
+ }
Review Comment:
why add parsedStmt == null? we already check parsedStmt == null in parseByLegacy()
##########
regression-test/suites/nereids_p0/insert_into_table/insert_values.groovy:
##########
@@ -0,0 +1,118 @@
+// Licensed to the Apache Software Foundation (ASF) under one
+// or more contributor license agreements. See the NOTICE file
+// distributed with this work for additional information
+// regarding copyright ownership. The ASF licenses this file
+// to you under the Apache License, Version 2.0 (the
+// "License"); you may not use this file except in compliance
+// with the License. You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing,
+// software distributed under the License is distributed on an
+// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+// KIND, either express or implied. See the License for the
+// specific language governing permissions and limitations
+// under the License.
+
+suite('nereids_insert_into_values') {
Review Comment:
add agg table cases
##########
fe/fe-core/src/main/java/org/apache/doris/qe/StmtExecutor.java:
##########
@@ -862,7 +865,9 @@ public void analyze(TQueryOptions tQueryOptions) throws UserException, Interrupt
context.getForwardedStmtId());
}
- parseByLegacy();
+ if (parsedStmt == null) {
+ parseByLegacy();
+ }
Review Comment:
why add `parsedStmt == null`? we already check `parsedStmt == null` in `parseByLegacy()`
##########
fe/fe-core/src/main/java/org/apache/doris/nereids/parser/LogicalPlanBuilder.java:
##########
@@ -700,6 +705,30 @@ public LogicalPlan visitRegularQuerySpecification(RegularQuerySpecificationConte
});
}
+ @Override
+ public LogicalPlan visitInlineTable(InlineTableContext ctx) {
+ List<List<Expression>> exprs = ctx.expression().stream()
+ .map(e -> {
+ Object o = visit(e);
+ if (o instanceof Row) {
+ return (((Row) o).children());
+ } else if (o instanceof Expression) {
+ return ImmutableList.of(((Expression) o));
+ } else {
+ throw new AnalysisException("invalid inline table");
+ }
+ }).collect(Collectors.toList());
Review Comment:
```suggestion
}).collect(ImmutableList.toImmutableList());
```
##########
regression-test/suites/nereids_p0/insert_into_table/insert_values.groovy:
##########
@@ -0,0 +1,118 @@
+// Licensed to the Apache Software Foundation (ASF) under one
+// or more contributor license agreements. See the NOTICE file
+// distributed with this work for additional information
+// regarding copyright ownership. The ASF licenses this file
+// to you under the Apache License, Version 2.0 (the
+// "License"); you may not use this file except in compliance
+// with the License. You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing,
+// software distributed under the License is distributed on an
+// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+// KIND, either express or implied. See the License for the
+// specific language governing permissions and limitations
+// under the License.
+
+suite('nereids_insert_into_values') {
+ sql 'set enable_nereids_planner=true'
+ sql 'set enable_fallback_to_original_planner=false'
+ sql 'set enable_nereids_dml=true'
+ sql 'set enable_strict_consistency_dml=true'
+
+ sql 'use nereids_insert_into_table_test'
+
+ def t1 = 'value_t1'
+ def t2 = 'value_t2'
+ def t3 = 'value_t3'
+
+ sql "drop table if exists ${t1}"
+ sql "drop table if exists ${t2}"
+ sql "drop table if exists ${t3}"
+
+ sql """
+ create table ${t1} (
+ id int,
+ id1 int,
+ c1 bigint,
+ c2 string,
+ c3 double,
+ c4 date
+ ) unique key (id, id1)
+ distributed by hash(id, id1) buckets 13
+ properties(
+ 'replication_num'='1',
+ "function_column.sequence_col" = "c4"
+ );
+ """
+
+ sql """
+ create table ${t2} (
+ id int,
+ c1 bigint,
+ c2 string,
+ c3 double,
+ c4 date
+ ) unique key (id)
+ distributed by hash(id) buckets 13
+ properties(
+ 'replication_num'='1'
+ );
+ """
+
+ sql """
+ create table ${t3} (
+ id int
+ ) distributed by hash(id) buckets 13
+ properties(
+ 'replication_num'='1'
+ );
+ """
+
+ sql """
+ INSERT INTO ${t1} VALUES
+ (1, 10, 1, '1', 1.0, '2000-01-01'),
+ (2, 20, 2, '2', 2.0, '2000-01-02'),
+ (3, 30, 3, '3', 3.0, '2000-01-03');
+ """
+
+ sql """
+ INSERT INTO ${t2} VALUES
+ (1, 10, '10', 10.0, '2000-01-10'),
+ (2, 20, '20', 20.0, '2000-01-20'),
+ (3, 30, '30', 30.0, '2000-01-30'),
+ (4, 4, '4', 4.0, '2000-01-04'),
+ (5, 5, '5', 5.0, '2000-01-05');
+ """
+
+ sql """
+ INSERT INTO ${t3} VALUES
+ (1),
+ (4),
+ (5);
+ """
+
+ sql "sync"
+ qt_sql_1 "select * from ${t1}, ${t2}, ${t3} order by ${t1}.id, ${t1}.id1, ${t2}.id, ${t3}.id"
Review Comment:
why use a cross join case?
##########
fe/fe-core/src/main/antlr4/org/apache/doris/nereids/DorisParser.g4:
##########
@@ -438,6 +445,7 @@ primaryExpression
| identifier #columnReference
| base=primaryExpression DOT fieldName=identifier #dereference
| LEFT_PAREN expression RIGHT_PAREN #parenthesizedExpression
+ | LEFT_PAREN namedExpression (COMMA namedExpression)+ RIGHT_PAREN #rowConstructor
Review Comment:
if u use `rowConstructor` as expression. This mean u want to support syntax like this `select (1, 2, 3)`. but u do not process it at all.
##########
fe/fe-core/src/test/java/org/apache/doris/nereids/trees/plans/ExplainInsertCommandTest.java:
##########
@@ -109,6 +109,16 @@ public void testInsertIntoSomeColumns() throws Exception {
Assertions.assertEquals(4, getOutputFragment(sql).getOutputExprs().size());
}
+ @Test
+ public void testInsertIntoValues() throws Exception {
+ String sql = "explain insert into t1 values(1, 1, 1, 1), (2, 2, 2, 2), (3, 3, 3, 3)";
Review Comment:
add some other expression rather than literal expression cases
--
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] [doris] sohardforaname commented on pull request #23121: [Feature](Nereids)support insert into values for Nereids
Posted by "sohardforaname (via GitHub)" <gi...@apache.org>.
sohardforaname commented on PR #23121:
URL: https://github.com/apache/doris/pull/23121#issuecomment-1689431522
run buildall
--
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] [doris] hello-stephen commented on pull request #23121: [Feature](Nereids)support insert into values for Nereids
Posted by "hello-stephen (via GitHub)" <gi...@apache.org>.
hello-stephen commented on PR #23121:
URL: https://github.com/apache/doris/pull/23121#issuecomment-1687698950
(From new machine)TeamCity pipeline, clickbench performance test result:
the sum of best hot time: 46.25 seconds
stream load tsv: 553 seconds loaded 74807831229 Bytes, about 129 MB/s
stream load json: 20 seconds loaded 2358488459 Bytes, about 112 MB/s
stream load orc: 65 seconds loaded 1101869774 Bytes, about 16 MB/s
stream load parquet: 30 seconds loaded 861443392 Bytes, about 27 MB/s
insert into select: 29.1 seconds inserted 10000000 Rows, about 343K ops/s
storage size: 17162147970 Bytes
--
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] [doris] sohardforaname commented on pull request #23121: [Feature](Nereids) support values table
Posted by "sohardforaname (via GitHub)" <gi...@apache.org>.
sohardforaname commented on PR #23121:
URL: https://github.com/apache/doris/pull/23121#issuecomment-1721081704
run buildall
--
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] [doris] sohardforaname commented on pull request #23121: [Feature](Nereids)support insert into values for Nereids
Posted by "sohardforaname (via GitHub)" <gi...@apache.org>.
sohardforaname commented on PR #23121:
URL: https://github.com/apache/doris/pull/23121#issuecomment-1716810312
run buildall
--
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] [doris] sohardforaname commented on pull request #23121: [Feature](Nereids)support insert into values for Nereids
Posted by "sohardforaname (via GitHub)" <gi...@apache.org>.
sohardforaname commented on PR #23121:
URL: https://github.com/apache/doris/pull/23121#issuecomment-1716055739
run buildall
--
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] [doris] sohardforaname commented on pull request #23121: [Feature](Nereids)support values table
Posted by "sohardforaname (via GitHub)" <gi...@apache.org>.
sohardforaname commented on PR #23121:
URL: https://github.com/apache/doris/pull/23121#issuecomment-1717171930
run buildall
--
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] [doris] doris-robot commented on pull request #23121: [Feature](Nereids)support values table
Posted by "doris-robot (via GitHub)" <gi...@apache.org>.
doris-robot commented on PR #23121:
URL: https://github.com/apache/doris/pull/23121#issuecomment-1717255100
(From new machine)TeamCity pipeline, clickbench performance test result:
the sum of best hot time: 47.38 seconds
stream load tsv: 600 seconds loaded 74807831229 Bytes, about 118 MB/s
stream load json: 20 seconds loaded 2358488459 Bytes, about 112 MB/s
stream load orc: 64 seconds loaded 1101869774 Bytes, about 16 MB/s
stream load parquet: 31 seconds loaded 861443392 Bytes, about 26 MB/s
insert into select: 29.1 seconds inserted 10000000 Rows, about 343K ops/s
storage size: 17162213670 Bytes
--
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] [doris] sohardforaname commented on pull request #23121: [Feature](Nereids)support insert into values for Nereids
Posted by "sohardforaname (via GitHub)" <gi...@apache.org>.
sohardforaname commented on PR #23121:
URL: https://github.com/apache/doris/pull/23121#issuecomment-1698553104
run buildall
--
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] [doris] sohardforaname commented on pull request #23121: [Feature](Nereids)support insert into values for Nereids
Posted by "sohardforaname (via GitHub)" <gi...@apache.org>.
sohardforaname commented on PR #23121:
URL: https://github.com/apache/doris/pull/23121#issuecomment-1697472421
run buildall
--
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] [doris] sohardforaname commented on pull request #23121: [Feature](Nereids)support values table
Posted by "sohardforaname (via GitHub)" <gi...@apache.org>.
sohardforaname commented on PR #23121:
URL: https://github.com/apache/doris/pull/23121#issuecomment-1720771731
run buildall
--
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] [doris] sohardforaname commented on pull request #23121: [Feature](Nereids) support values table
Posted by "sohardforaname (via GitHub)" <gi...@apache.org>.
sohardforaname commented on PR #23121:
URL: https://github.com/apache/doris/pull/23121#issuecomment-1721018731
run buildall
--
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] [doris] doris-robot commented on pull request #23121: [Feature](Nereids) support values table
Posted by "doris-robot (via GitHub)" <gi...@apache.org>.
doris-robot commented on PR #23121:
URL: https://github.com/apache/doris/pull/23121#issuecomment-1721124957
(From new machine)TeamCity pipeline, clickbench performance test result:
the sum of best hot time: 51.64 seconds
stream load tsv: 592 seconds loaded 74807831229 Bytes, about 120 MB/s
stream load json: 20 seconds loaded 2358488459 Bytes, about 112 MB/s
stream load orc: 65 seconds loaded 1101869774 Bytes, about 16 MB/s
stream load parquet: 33 seconds loaded 861443392 Bytes, about 24 MB/s
insert into select: 28.7 seconds inserted 10000000 Rows, about 348K ops/s
storage size: 17162509210 Bytes
--
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] [doris] morrySnow commented on a diff in pull request #23121: [Feature](Nereids)support values table
Posted by "morrySnow (via GitHub)" <gi...@apache.org>.
morrySnow commented on code in PR #23121:
URL: https://github.com/apache/doris/pull/23121#discussion_r1326954370
##########
fe/fe-core/src/main/java/org/apache/doris/nereids/parser/LogicalPlanBuilder.java:
##########
@@ -731,6 +734,18 @@ public LogicalPlan visitRegularQuerySpecification(RegularQuerySpecificationConte
});
}
+ @Override
+ public LogicalPlan visitInlineTable(InlineTableContext ctx) {
+ List<UnboundOneRowRelation> exprsList = ctx.rowConstructor().stream()
+ .map(this::visitRowConstructor)
+ .collect(ImmutableList.toImmutableList());
+ LogicalPlan relation = exprsList.get(0);
+ for (int i = 1; i < exprsList.size(); i++) {
+ relation = new LogicalUnion(Qualifier.ALL, ImmutableList.of(relation, exprsList.get(i)));
+ }
Review Comment:
u could not construct a multi children union in parser. because the rules before merge set oepration only could process union with two children
##########
fe/fe-core/src/main/java/org/apache/doris/nereids/rules/analysis/BindSink.java:
##########
@@ -140,13 +147,28 @@ public List<Rule> buildRules() {
column.getName()
));
} else {
- columnToOutput.put(column.getName(),
- new Alias(Literal.of(column.getDefaultValue())
- .checkedCastTo(DataType.fromCatalogType(column.getType())),
- column.getName()));
+ if (column.getDefaultValueExpr() == null) {
+ columnToOutput.put(column.getName(),
+ new Alias(Literal.of(column.getDefaultValue())
+ .checkedCastTo(
+ DataType.fromCatalogType(column.getType())),
+ column.getName()));
+ } else {
+ Expression defualtValueExpression = FunctionBinder.INSTANCE.rewrite(
Review Comment:
add comment to explain which scene getDefaultValueExpr is null, and which is not null
##########
fe/fe-core/src/main/java/org/apache/doris/nereids/rules/analysis/BindSink.java:
##########
@@ -140,13 +147,28 @@ public List<Rule> buildRules() {
column.getName()
));
} else {
- columnToOutput.put(column.getName(),
- new Alias(Literal.of(column.getDefaultValue())
- .checkedCastTo(DataType.fromCatalogType(column.getType())),
- column.getName()));
+ if (column.getDefaultValueExpr() == null) {
+ columnToOutput.put(column.getName(),
+ new Alias(Literal.of(column.getDefaultValue())
+ .checkedCastTo(
+ DataType.fromCatalogType(column.getType())),
+ column.getName()));
+ } else {
+ Expression defualtValueExpression = FunctionBinder.INSTANCE.rewrite(
+ new NereidsParser().parseExpression(
+ column.getDefaultValueExpr().toSql()),
+ new ExpressionRewriteContext(ctx.cascadesContext));
+ NamedExpression slot = defualtValueExpression instanceof NamedExpression
+ ? ((NamedExpression) defualtValueExpression)
+ : new Alias(defualtValueExpression);
+
+ columnToOutput.put(column.getName(), slot);
+ }
}
}
}
+ } catch (Exception e) {
+ throw new AnalysisException(e.getMessage(), e.getCause());
Review Comment:
do not add catch here, only try catch in the smallest scope
--
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] [doris] sohardforaname commented on a diff in pull request #23121: [Feature](Nereids)support values table
Posted by "sohardforaname (via GitHub)" <gi...@apache.org>.
sohardforaname commented on code in PR #23121:
URL: https://github.com/apache/doris/pull/23121#discussion_r1326972185
##########
fe/fe-core/src/main/java/org/apache/doris/nereids/rules/analysis/BindSink.java:
##########
@@ -140,13 +147,28 @@ public List<Rule> buildRules() {
column.getName()
));
} else {
- columnToOutput.put(column.getName(),
- new Alias(Literal.of(column.getDefaultValue())
- .checkedCastTo(DataType.fromCatalogType(column.getType())),
- column.getName()));
+ if (column.getDefaultValueExpr() == null) {
+ columnToOutput.put(column.getName(),
+ new Alias(Literal.of(column.getDefaultValue())
+ .checkedCastTo(
+ DataType.fromCatalogType(column.getType())),
+ column.getName()));
+ } else {
+ Expression defualtValueExpression = FunctionBinder.INSTANCE.rewrite(
+ new NereidsParser().parseExpression(
+ column.getDefaultValueExpr().toSql()),
+ new ExpressionRewriteContext(ctx.cascadesContext));
+ NamedExpression slot = defualtValueExpression instanceof NamedExpression
+ ? ((NamedExpression) defualtValueExpression)
+ : new Alias(defualtValueExpression);
+
+ columnToOutput.put(column.getName(), slot);
+ }
}
}
}
+ } catch (Exception e) {
+ throw new AnalysisException(e.getMessage(), e.getCause());
Review Comment:
yes, I change the try-catch scope.
--
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] [doris] sohardforaname commented on pull request #23121: [Feature](Nereids)support insert into values for Nereids
Posted by "sohardforaname (via GitHub)" <gi...@apache.org>.
sohardforaname commented on PR #23121:
URL: https://github.com/apache/doris/pull/23121#issuecomment-1716867599
run buildall
--
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] [doris] sohardforaname commented on a diff in pull request #23121: [Feature](Nereids)support values table
Posted by "sohardforaname (via GitHub)" <gi...@apache.org>.
sohardforaname commented on code in PR #23121:
URL: https://github.com/apache/doris/pull/23121#discussion_r1323905494
##########
fe/fe-core/src/main/java/org/apache/doris/nereids/parser/LogicalPlanBuilder.java:
##########
@@ -1662,6 +1683,16 @@ public Expression visitParenthesizedExpression(ParenthesizedExpressionContext ct
return getExpression(ctx.expression());
}
+ @Override
+ public Expression visitRowConstructor(RowConstructorContext ctx) {
+ return new Row(ctx.namedExpression().stream()
Review Comment:
yes,i fix it
##########
fe/fe-core/src/main/java/org/apache/doris/nereids/parser/LogicalPlanBuilder.java:
##########
@@ -1662,6 +1683,16 @@ public Expression visitParenthesizedExpression(ParenthesizedExpressionContext ct
return getExpression(ctx.expression());
}
+ @Override
+ public Expression visitRowConstructor(RowConstructorContext ctx) {
+ return new Row(ctx.namedExpression().stream()
Review Comment:
yes,i fix it
--
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] [doris] sohardforaname commented on pull request #23121: [Feature](Nereids)support insert into values for Nereids
Posted by "sohardforaname (via GitHub)" <gi...@apache.org>.
sohardforaname commented on PR #23121:
URL: https://github.com/apache/doris/pull/23121#issuecomment-1700769972
run buildall
--
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] [doris] sohardforaname commented on pull request #23121: [Feature](Nereids)support insert into values for Nereids
Posted by "sohardforaname (via GitHub)" <gi...@apache.org>.
sohardforaname commented on PR #23121:
URL: https://github.com/apache/doris/pull/23121#issuecomment-1704840207
run buildall
--
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] [doris] sohardforaname commented on pull request #23121: [Feature](Nereids)support insert into values for Nereids
Posted by "sohardforaname (via GitHub)" <gi...@apache.org>.
sohardforaname commented on PR #23121:
URL: https://github.com/apache/doris/pull/23121#issuecomment-1689547411
run p0
--
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] [doris] sohardforaname commented on pull request #23121: [Feature](Nereids)support values table
Posted by "sohardforaname (via GitHub)" <gi...@apache.org>.
sohardforaname commented on PR #23121:
URL: https://github.com/apache/doris/pull/23121#issuecomment-1719458726
run p0
--
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] [doris] doris-robot commented on pull request #23121: [Feature](Nereids)support values table
Posted by "doris-robot (via GitHub)" <gi...@apache.org>.
doris-robot commented on PR #23121:
URL: https://github.com/apache/doris/pull/23121#issuecomment-1720934136
(From new machine)TeamCity pipeline, clickbench performance test result:
the sum of best hot time: 48.43 seconds
stream load tsv: 591 seconds loaded 74807831229 Bytes, about 120 MB/s
stream load json: 20 seconds loaded 2358488459 Bytes, about 112 MB/s
stream load orc: 65 seconds loaded 1101869774 Bytes, about 16 MB/s
stream load parquet: 32 seconds loaded 861443392 Bytes, about 25 MB/s
insert into select: 28.9 seconds inserted 10000000 Rows, about 346K ops/s
storage size: 17162433052 Bytes
--
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] [doris] github-actions[bot] commented on pull request #23121: [Feature](Nereids) support values table
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #23121:
URL: https://github.com/apache/doris/pull/23121#issuecomment-1721145455
PR approved by at least one committer 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] [doris] morrySnow commented on a diff in pull request #23121: [Feature](Nereids)support values table
Posted by "morrySnow (via GitHub)" <gi...@apache.org>.
morrySnow commented on code in PR #23121:
URL: https://github.com/apache/doris/pull/23121#discussion_r1326962359
##########
fe/fe-core/src/main/java/org/apache/doris/nereids/parser/LogicalPlanBuilder.java:
##########
@@ -731,6 +734,18 @@ public LogicalPlan visitRegularQuerySpecification(RegularQuerySpecificationConte
});
}
+ @Override
+ public LogicalPlan visitInlineTable(InlineTableContext ctx) {
+ List<UnboundOneRowRelation> exprsList = ctx.rowConstructor().stream()
+ .map(this::visitRowConstructor)
+ .collect(ImmutableList.toImmutableList());
+ LogicalPlan relation = exprsList.get(0);
+ for (int i = 1; i < exprsList.size(); i++) {
+ relation = new LogicalUnion(Qualifier.ALL, ImmutableList.of(relation, exprsList.get(i)));
+ }
Review Comment:
u could construct a AVL just like in visitSetOperation
--
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] [doris] hello-stephen commented on pull request #23121: [Feature](Nereids)support insert into values for Nereids
Posted by "hello-stephen (via GitHub)" <gi...@apache.org>.
hello-stephen commented on PR #23121:
URL: https://github.com/apache/doris/pull/23121#issuecomment-1698970065
(From new machine)TeamCity pipeline, clickbench performance test result:
the sum of best hot time: 47.72 seconds
stream load tsv: 539 seconds loaded 74807831229 Bytes, about 132 MB/s
stream load json: 20 seconds loaded 2358488459 Bytes, about 112 MB/s
stream load orc: 64 seconds loaded 1101869774 Bytes, about 16 MB/s
stream load parquet: 32 seconds loaded 861443392 Bytes, about 25 MB/s
insert into select: 28.9 seconds inserted 10000000 Rows, about 346K ops/s
storage size: 17162211236 Bytes
--
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] [doris] sohardforaname commented on pull request #23121: [Feature](Nereids)support insert into values for Nereids
Posted by "sohardforaname (via GitHub)" <gi...@apache.org>.
sohardforaname commented on PR #23121:
URL: https://github.com/apache/doris/pull/23121#issuecomment-1698822844
run buildall
--
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] [doris] hello-stephen commented on pull request #23121: [Feature](Nereids)support insert into values for Nereids
Posted by "hello-stephen (via GitHub)" <gi...@apache.org>.
hello-stephen commented on PR #23121:
URL: https://github.com/apache/doris/pull/23121#issuecomment-1698893256
(From new machine)TeamCity pipeline, clickbench performance test result:
the sum of best hot time: 50.27 seconds
stream load tsv: 546 seconds loaded 74807831229 Bytes, about 130 MB/s
stream load json: 20 seconds loaded 2358488459 Bytes, about 112 MB/s
stream load orc: 64 seconds loaded 1101869774 Bytes, about 16 MB/s
stream load parquet: 31 seconds loaded 861443392 Bytes, about 26 MB/s
insert into select: 29.4 seconds inserted 10000000 Rows, about 340K ops/s
storage size: 17161999177 Bytes
--
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] [doris] sohardforaname commented on pull request #23121: [Feature](Nereids)support insert into values for Nereids
Posted by "sohardforaname (via GitHub)" <gi...@apache.org>.
sohardforaname commented on PR #23121:
URL: https://github.com/apache/doris/pull/23121#issuecomment-1700932621
run buildall
--
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] [doris] starocean999 merged pull request #23121: [Feature](Nereids) support values table
Posted by "starocean999 (via GitHub)" <gi...@apache.org>.
starocean999 merged PR #23121:
URL: https://github.com/apache/doris/pull/23121
--
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] [doris] hello-stephen commented on pull request #23121: [Feature](Nereids)support insert into values for Nereids
Posted by "hello-stephen (via GitHub)" <gi...@apache.org>.
hello-stephen commented on PR #23121:
URL: https://github.com/apache/doris/pull/23121#issuecomment-1704905455
(From new machine)TeamCity pipeline, clickbench performance test result:
the sum of best hot time: 46.15 seconds
stream load tsv: 537 seconds loaded 74807831229 Bytes, about 132 MB/s
stream load json: 20 seconds loaded 2358488459 Bytes, about 112 MB/s
stream load orc: 64 seconds loaded 1101869774 Bytes, about 16 MB/s
stream load parquet: 31 seconds loaded 861443392 Bytes, about 26 MB/s
insert into select: 29.2 seconds inserted 10000000 Rows, about 342K ops/s
storage size: 17162276530 Bytes
--
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] [doris] doris-robot commented on pull request #23121: [Feature](Nereids)support insert into values for Nereids
Posted by "doris-robot (via GitHub)" <gi...@apache.org>.
doris-robot commented on PR #23121:
URL: https://github.com/apache/doris/pull/23121#issuecomment-1711390809
(From new machine)TeamCity pipeline, clickbench performance test result:
the sum of best hot time: 46.53 seconds
stream load tsv: 550 seconds loaded 74807831229 Bytes, about 129 MB/s
stream load json: 21 seconds loaded 2358488459 Bytes, about 107 MB/s
stream load orc: 64 seconds loaded 1101869774 Bytes, about 16 MB/s
stream load parquet: 30 seconds loaded 861443392 Bytes, about 27 MB/s
insert into select: 29.1 seconds inserted 10000000 Rows, about 343K ops/s
storage size: 17162209971 Bytes
--
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
Re: [PR] [Feature](Nereids) support values table [doris]
Posted by "xiaokang (via GitHub)" <gi...@apache.org>.
xiaokang commented on PR #23121:
URL: https://github.com/apache/doris/pull/23121#issuecomment-1759269560
remove dev/2.0.3 label since DDL is not enabled in 2.0
--
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] [doris] morrySnow commented on a diff in pull request #23121: [Feature](Nereids)support insert into values for Nereids
Posted by "morrySnow (via GitHub)" <gi...@apache.org>.
morrySnow commented on code in PR #23121:
URL: https://github.com/apache/doris/pull/23121#discussion_r1302837676
##########
fe/fe-core/src/main/antlr4/org/apache/doris/nereids/DorisParser.g4:
##########
@@ -45,6 +45,8 @@ statement
(WITH LABEL labelName=identifier)? cols=identifierList? // label and columns define
(LEFT_BRACKET hints=identifierSeq RIGHT_BRACKET)? // hint define
query #insertIntoQuery
+ | explain? INSERT INTO tableName=multipartIdentifier VALUES
+ lists+=constantList (COMMA lists+=constantList)* #insertIntoValues
Review Comment:
u should implement values as querystmt.
refer to https://github.com/apache/spark/blob/0d1b5975b2d308c616312d53b9f7ad754348a266/sql/api/src/main/antlr4/org/apache/spark/sql/catalyst/parser/SqlBaseParser.g4#L793
--
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] [doris] sohardforaname commented on pull request #23121: [Feature](Nereids)support insert into values for Nereids
Posted by "sohardforaname (via GitHub)" <gi...@apache.org>.
sohardforaname commented on PR #23121:
URL: https://github.com/apache/doris/pull/23121#issuecomment-1687639535
run buildall
--
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] [doris] hello-stephen commented on pull request #23121: [Feature](Nereids)support insert into values for Nereids
Posted by "hello-stephen (via GitHub)" <gi...@apache.org>.
hello-stephen commented on PR #23121:
URL: https://github.com/apache/doris/pull/23121#issuecomment-1698596757
(From new machine)TeamCity pipeline, clickbench performance test result:
the sum of best hot time: 46.44 seconds
stream load tsv: 545 seconds loaded 74807831229 Bytes, about 130 MB/s
stream load json: 20 seconds loaded 2358488459 Bytes, about 112 MB/s
stream load orc: 64 seconds loaded 1101869774 Bytes, about 16 MB/s
stream load parquet: 31 seconds loaded 861443392 Bytes, about 26 MB/s
insert into select: 28.9 seconds inserted 10000000 Rows, about 346K ops/s
storage size: 17162083418 Bytes
--
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] [doris] sohardforaname commented on pull request #23121: [Feature](Nereids)support insert into values for Nereids
Posted by "sohardforaname (via GitHub)" <gi...@apache.org>.
sohardforaname commented on PR #23121:
URL: https://github.com/apache/doris/pull/23121#issuecomment-1700486266
run buildall
--
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] [doris] hello-stephen commented on pull request #23121: [Feature](Nereids)support insert into values for Nereids
Posted by "hello-stephen (via GitHub)" <gi...@apache.org>.
hello-stephen commented on PR #23121:
URL: https://github.com/apache/doris/pull/23121#issuecomment-1702137935
(From new machine)TeamCity pipeline, clickbench performance test result:
the sum of best hot time: 49.51 seconds
stream load tsv: 546 seconds loaded 74807831229 Bytes, about 130 MB/s
stream load json: 20 seconds loaded 2358488459 Bytes, about 112 MB/s
stream load orc: 64 seconds loaded 1101869774 Bytes, about 16 MB/s
stream load parquet: 31 seconds loaded 861443392 Bytes, about 26 MB/s
insert into select: 29.3 seconds inserted 10000000 Rows, about 341K ops/s
storage size: 17162034930 Bytes
--
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] [doris] doris-robot commented on pull request #23121: [Feature](Nereids)support insert into values for Nereids
Posted by "doris-robot (via GitHub)" <gi...@apache.org>.
doris-robot commented on PR #23121:
URL: https://github.com/apache/doris/pull/23121#issuecomment-1711557834
(From new machine)TeamCity pipeline, clickbench performance test result:
the sum of best hot time: 45.77 seconds
stream load tsv: 527 seconds loaded 74807831229 Bytes, about 135 MB/s
stream load json: 20 seconds loaded 2358488459 Bytes, about 112 MB/s
stream load orc: 64 seconds loaded 1101869774 Bytes, about 16 MB/s
stream load parquet: 31 seconds loaded 861443392 Bytes, about 26 MB/s
insert into select: 28.9 seconds inserted 10000000 Rows, about 346K ops/s
storage size: 17162111067 Bytes
--
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] [doris] sohardforaname commented on pull request #23121: [Feature](Nereids)support insert into values for Nereids
Posted by "sohardforaname (via GitHub)" <gi...@apache.org>.
sohardforaname commented on PR #23121:
URL: https://github.com/apache/doris/pull/23121#issuecomment-1711345405
run buildall
--
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] [doris] sohardforaname commented on a diff in pull request #23121: [Feature](Nereids)support values table
Posted by "sohardforaname (via GitHub)" <gi...@apache.org>.
sohardforaname commented on code in PR #23121:
URL: https://github.com/apache/doris/pull/23121#discussion_r1326971472
##########
fe/fe-core/src/main/java/org/apache/doris/nereids/parser/LogicalPlanBuilder.java:
##########
@@ -731,6 +734,18 @@ public LogicalPlan visitRegularQuerySpecification(RegularQuerySpecificationConte
});
}
+ @Override
+ public LogicalPlan visitInlineTable(InlineTableContext ctx) {
+ List<UnboundOneRowRelation> exprsList = ctx.rowConstructor().stream()
+ .map(this::visitRowConstructor)
+ .collect(ImmutableList.toImmutableList());
+ LogicalPlan relation = exprsList.get(0);
+ for (int i = 1; i < exprsList.size(); i++) {
+ relation = new LogicalUnion(Qualifier.ALL, ImmutableList.of(relation, exprsList.get(i)));
+ }
Review Comment:
this is only two children, it's OK.
--
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] [doris] morrySnow commented on a diff in pull request #23121: [Feature](Nereids) support values table
Posted by "morrySnow (via GitHub)" <gi...@apache.org>.
morrySnow commented on code in PR #23121:
URL: https://github.com/apache/doris/pull/23121#discussion_r1327074549
##########
fe/fe-core/src/main/java/org/apache/doris/nereids/parser/LogicalPlanBuilder.java:
##########
@@ -731,6 +734,18 @@ public LogicalPlan visitRegularQuerySpecification(RegularQuerySpecificationConte
});
}
+ @Override
+ public LogicalPlan visitInlineTable(InlineTableContext ctx) {
+ List<UnboundOneRowRelation> exprsList = ctx.rowConstructor().stream()
+ .map(this::visitRowConstructor)
+ .collect(ImmutableList.toImmutableList());
+ LogicalPlan relation = exprsList.get(0);
+ for (int i = 1; i < exprsList.size(); i++) {
+ relation = new LogicalUnion(Qualifier.ALL, ImmutableList.of(relation, exprsList.get(i)));
+ }
Review Comment:
u shoud construct a AVL just like in visitSetOperation, to reduce tree deep
--
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] [doris] sohardforaname commented on pull request #23121: [Feature](Nereids)support values table
Posted by "sohardforaname (via GitHub)" <gi...@apache.org>.
sohardforaname commented on PR #23121:
URL: https://github.com/apache/doris/pull/23121#issuecomment-1720414110
run p0
--
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] [doris] sohardforaname commented on pull request #23121: [Feature](Nereids)support values table
Posted by "sohardforaname (via GitHub)" <gi...@apache.org>.
sohardforaname commented on PR #23121:
URL: https://github.com/apache/doris/pull/23121#issuecomment-1716900176
run buildall
--
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] [doris] github-actions[bot] commented on pull request #23121: [Feature](Nereids) support values table
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #23121:
URL: https://github.com/apache/doris/pull/23121#issuecomment-1721145514
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