We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
version: 1.0.0-rc.3 SQL:SELECT * FROM ( WITH RankedResults AS (select , ROW_NUMBER() OVER (PARTITION BY formatted_create_dt ORDER BY member_user_cnt DESC) AS rn from (SELECT DATE_FORMAT(create_dt, '%Y-%m-%d') AS formatted_create_dt, b.language_name, COUNT(DISTINCT CASE WHEN action_type = 'member' THEN user_id END) AS member_user_cnt, COUNT(DISTINCT CASE WHEN action_type = 'left' THEN user_id END) AS left_user_cnt, COUNT(DISTINCT CASE WHEN action_type = 'member' THEN user_id END) - COUNT(DISTINCT CASE WHEN action_type = 'left' THEN user_id END) AS net_incre_cnt FROM dc_collect_channel a LEFT JOIN language_map_info b ON a.language = b.language_short_name WHERE create_dt >= $ST_DATE$ and create_dt <= $END_DATE$ AND b.language_name IS NOT NULL GROUP BY formatted_create_dt, b.language_name) m) SELECT formatted_create_dt '日期',language_name '语言',member_user_cnt '进入用户数',left_user_cnt '离开用户数' FROM RankedResults WHERE rn <= 10 ORDER BY formatted_create_dt desc,member_user_cnt desc ) AS DATART_VTABLE LIMIT 1000 OFFSET 0 DB: MYSQL EXCEPTION:org.apache.calcite.sql.parser.SqlParseException: Encountered ". language" at line 1, column 975. Was expecting one of: "EXCEPT" ... "FETCH" ... "GROUP" ... "HAVING" ... "INTERSECT" ... "LIMIT" ... "OFFSET" ... "ORDER" ... "MINUS" ... "UNION" ... "WHERE" ... "WINDOW" ... ")" ... "NATURAL" ... "JOIN" ... "INNER" ... "LEFT" ... "RIGHT" ... "FULL" ... "CROSS" ... "," ... "OUTER" ... "." ... "." <HYPHENATED_IDENTIFIER> ... "." <QUOTED_IDENTIFIER> ... "." <BACK_QUOTED_IDENTIFIER> ... "." <BRACKET_QUOTED_IDENTIFIER> ... "." <UNICODE_QUOTED_IDENTIFIER> ... "NOT" ... "IN" ... "<" ... "<=" ... ">" ... ">=" ... "=" ... "<>" ... "!=" ... "BETWEEN" ... "LIKE" ... "SIMILAR" ... "+" ... "-" ... "" ... "/" ... "%" ... "||" ... "AND" ... "OR" ... "IS" ... "MEMBER" ... "SUBMULTISET" ... "CONTAINS" ... "OVERLAPS" ... "EQUALS" ... "PRECEDES" ... "SUCCEEDS" ... "IMMEDIATELY" ... "MULTISET" ... "&" ... "[" ... "FORMAT" ... "." ... "." "*" ... "(" ...
DATART_VTABLE
The text was updated successfully, but these errors were encountered:
No branches or pull requests
version: 1.0.0-rc.3
SQL:SELECT * FROM ( WITH RankedResults AS (select , ROW_NUMBER() OVER (PARTITION BY formatted_create_dt ORDER BY member_user_cnt DESC) AS rn from (SELECT DATE_FORMAT(create_dt, '%Y-%m-%d') AS formatted_create_dt, b.language_name, COUNT(DISTINCT CASE WHEN action_type = 'member' THEN user_id END) AS member_user_cnt, COUNT(DISTINCT CASE WHEN action_type = 'left' THEN user_id END) AS left_user_cnt, COUNT(DISTINCT CASE WHEN action_type = 'member' THEN user_id END) - COUNT(DISTINCT CASE WHEN action_type = 'left' THEN user_id END) AS net_incre_cnt FROM dc_collect_channel a LEFT JOIN language_map_info b ON a.language = b.language_short_name WHERE create_dt >= $ST_DATE$ and create_dt <= $END_DATE$ AND b.language_name IS NOT NULL GROUP BY formatted_create_dt, b.language_name) m) SELECT formatted_create_dt '日期',language_name '语言',member_user_cnt '进入用户数',left_user_cnt '离开用户数' FROM RankedResults WHERE rn <= 10 ORDER BY formatted_create_dt desc,member_user_cnt desc ) AS
DATART_VTABLE
LIMIT 1000 OFFSET 0DB: MYSQL
EXCEPTION:org.apache.calcite.sql.parser.SqlParseException: Encountered ". language" at line 1, column 975.
Was expecting one of:
"EXCEPT" ...
"FETCH" ...
"GROUP" ...
"HAVING" ...
"INTERSECT" ...
"LIMIT" ...
"OFFSET" ...
"ORDER" ...
"MINUS" ...
"UNION" ...
"WHERE" ...
"WINDOW" ...
")" ...
"NATURAL" ...
"JOIN" ...
"INNER" ...
"LEFT" ...
"RIGHT" ...
"FULL" ...
"CROSS" ...
"," ...
"OUTER" ...
"." ...
"." <HYPHENATED_IDENTIFIER> ...
"." <QUOTED_IDENTIFIER> ...
"." <BACK_QUOTED_IDENTIFIER> ...
"." <BRACKET_QUOTED_IDENTIFIER> ...
"." <UNICODE_QUOTED_IDENTIFIER> ...
"NOT" ...
"IN" ...
"<" ...
"<=" ...
">" ...
">=" ...
"=" ...
"<>" ...
"!=" ...
"BETWEEN" ...
"LIKE" ...
"SIMILAR" ...
"+" ...
"-" ...
"" ...
"/" ...
"%" ...
"||" ...
"AND" ...
"OR" ...
"IS" ...
"MEMBER" ...
"SUBMULTISET" ...
"CONTAINS" ...
"OVERLAPS" ...
"EQUALS" ...
"PRECEDES" ...
"SUCCEEDS" ...
"IMMEDIATELY" ...
"MULTISET" ...
"&" ...
"[" ...
"FORMAT" ...
"." ...
"." "*" ...
"(" ...
The text was updated successfully, but these errors were encountered: