Skip to content

Commit 1024bb9

Browse files
committed
Add comments
1 parent 227346e commit 1024bb9

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

src/Parsers/ExpressionElementParsers.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -417,6 +417,7 @@ bool ParserCompoundIdentifier::parseImpl(Pos & pos, ASTPtr & node, Expected & ex
417417

418418
std::optional<std::pair<char, String>> ParserCompoundIdentifier::splitSpecialDelimiterAndIdentifierIfAny(const String & name)
419419
{
420+
/// Identifier with special delimiter looks like this: <special_delimiter>`<identifier>`.
420421
if (name.size() < 3
421422
|| (name[0] != char(SpecialDelimiter::JSON_PATH_DYNAMIC_TYPE) && name[0] != char(SpecialDelimiter::JSON_PATH_PREFIX))
422423
|| name[1] != '`' || name.back() != '`')

src/Parsers/ExpressionElementParsers.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,8 @@ class ParserCompoundIdentifier : public IParserBase
6666
{
6767
}
6868

69+
/// Checks if the identirier is actually a pair of a special delimiter and the identifier in back quotes.
70+
/// For example: :`UInt64` or ^`path` from special JSON subcolumns.
6971
static std::optional<std::pair<char, String>> splitSpecialDelimiterAndIdentifierIfAny(const String & name);
7072

7173
protected:

0 commit comments

Comments
 (0)