Tanya-W commented on code in PR #20781:
URL: https://github.com/apache/doris/pull/20781#discussion_r1229068063


##########
regression-test/suites/nereids_syntax_p0/match.groovy:
##########
@@ -0,0 +1,178 @@
+// 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("test_nereids_match_select") {
+    sql """
+        SET enable_nereids_planner=true
+    """
+
+    sql "SET enable_fallback_to_original_planner=false"
+
+    sql """
+        drop table if exists test_nereids_match_select;
+    """
+
+    sql """
+        CREATE TABLE `test_nereids_match_select`
+        (
+            `name`           varchar(50),
+            `age`            int NOT NULL,
+            `grade`          varchar(30) NOT NULL,
+            `fatherName`     varchar(50),
+            `matherName`     varchar(50),
+            `selfComment`    text,
+            INDEX name_idx(name) USING INVERTED PROPERTIES("parser"="english") 
COMMENT 'name index',
+            INDEX age_idx(age) USING INVERTED COMMENT 'age index',
+            INDEX grade_idx(grade) USING INVERTED PROPERTIES("parser"="none") 
COMMENT 'grade index',
+            INDEX fatherName_idx(fatherName) USING INVERTED 
PROPERTIES("parser"="english") COMMENT 'fatherName index',
+            INDEX matherName_idx(matherName) USING INVERTED 
PROPERTIES("parser"="english") COMMENT 'matherName index',
+            INDEX selfComment_idx(selfComment) USING INVERTED 
PROPERTIES("parser"="standard") COMMENT 'selfComment index'
+        ) ENGINE=OLAP
+        DUPLICATE KEY(`name`)
+        DISTRIBUTED BY HASH(`name`) BUCKETS 10
+        PROPERTIES (
+        "replication_allocation" = "tag.location.default: 1",
+        "in_memory" = "false",
+        "storage_format" = "V2"
+        );
+    """
+    
+    sql """ insert into test_nereids_match_select VALUES
+        ("zhang san", 10, "grade 5", "zhang yi", "chen san", "Class 
activists"),
+        ("zhang san yi", 11, "grade 5", "zhang yi", "chen san", "learn makes 
me happy"),
+        ("li si", 9, "grade 4", "li er", "wan jiu", "i just want go outside"),
+        ("san zhang", 10, "grade 5", "", "", ""),
+        ("li sisi", 11, "grade 6", "li ba", "li liuliu", "")
+    """
+    

Review Comment:
   updated



-- 
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-unsubscr...@doris.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org
For additional commands, e-mail: commits-h...@doris.apache.org

Reply via email to