This commit is contained in:
avogar 2024-08-13 23:51:49 +00:00
parent 217963757e
commit 46f41d1718
3 changed files with 5 additions and 5 deletions

View File

@ -273,7 +273,7 @@ bool ParserDataType::parseImpl(Pos & pos, ASTPtr & node, Expected & expected)
ObjectArgumentParser parser;
parser.parse(pos, arg, expected);
}
else if (boost::to_lower_copy(type_name) == "nested")
else if (type_name == "Nested")
{
ParserNameTypePair name_and_type_parser;
name_and_type_parser.parse(pos, arg, expected);

View File

@ -1,12 +1,12 @@
CREATE TABLE test
(
`a` Int64,
`b` NESTED(a Int64)
`b` Nested(a Int64)
)
ENGINE = TinyLog
CREATE TABLE test
(
`a` Int64,
`b` TUPLE(a Int64)
`b` Tuple(a Int64)
)
ENGINE = TinyLog

View File

@ -4,6 +4,6 @@ CURDIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
# shellcheck source=../shell_config.sh
. "$CURDIR"/../shell_config.sh
echo "CREATE TABLE test(a Int64, b NESTED(a Int64)) ENGINE=TinyLog" | $CLICKHOUSE_FORMAT
echo "CREATE TABLE test(a Int64, b Nested(a Int64)) ENGINE=TinyLog" | $CLICKHOUSE_FORMAT
echo "CREATE TABLE test(a Int64, b TUPLE(a Int64)) ENGINE=TinyLog" | $CLICKHOUSE_FORMAT
echo "CREATE TABLE test(a Int64, b Tuple(a Int64)) ENGINE=TinyLog" | $CLICKHOUSE_FORMAT