doris largeint type execute where query, the result is incorrect (#15034)

This commit is contained in:
caoliang-web
2023-01-13 23:12:02 +08:00
committed by GitHub
parent 336148384b
commit a788623ee2
2 changed files with 49 additions and 0 deletions

View File

@ -0,0 +1,4 @@
-- This file is automatically generated. You should know what you did if you want to edit this
-- !select --
4

View File

@ -0,0 +1,45 @@
// 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_largeint") {
def tbName = "test_demo"
sql "DROP TABLE IF EXISTS ${tbName}"
sql """
CREATE TABLE IF NOT EXISTS ${tbName}
(
`user_id` LARGEINT NOT NULL COMMENT "用户id",
`phone` LARGEINT COMMENT "用户电话"
)
UNIQUE KEY(`user_id`)
DISTRIBUTED BY HASH(`user_id`) BUCKETS 1
PROPERTIES (
"replication_allocation" = "tag.location.default: 1"
);
"""
sql "insert into ${tbName} values (10003,195456789345678955654444443875);"
sql "insert into ${tbName} values (10003,195456789345678955654444443874);"
sql "insert into ${tbName} values (10003,195456789345678955654444443873);"
sql "insert into ${tbName} values (10003,195456789345678955654444443877);"
sql "insert into ${tbName} values (10003,195456789345678955654444443878);"
sql "insert into ${tbName} values (10004,195456789345678955654444443878);"
sql "insert into ${tbName} values (10005,195456789345678955654444443877);"
sql "insert into ${tbName} values (10006,195456789345678955654444443878);"
sql "insert into ${tbName} values (10009,195456789345678955654444443878);"
qt_select "select count(1) from ${tbName} where phone='195456789345678955654444443878';"
sql "DROP TABLE ${tbName}"
}