AshinGau commented on code in PR #13051: URL: https://github.com/apache/doris/pull/13051#discussion_r990895260
########## fe/fe-core/src/main/cup/sql_parser.cup: ########## @@ -1650,6 +1670,145 @@ opt_user_role ::= :} ; +opt_password_option ::= + opt_passwd_history_policy:historyPolicy + opt_passwd_expire_policy:expirePolicy + opt_passwd_reuse_policy:reusePolicy + opt_failed_login_attempts:loginAttempts + opt_password_lock_time:passwdLockTime + opt_lock_account:lockAccount + {: + RESULT = new PasswordOptions(expirePolicy, historyPolicy, reusePolicy, loginAttempts, passwdLockTime, lockAccount); + :} + ; + +opt_passwd_expire_policy ::= + {: + RESULT = -2L; Review Comment: Does `cup` has constant variable to identify `-2`? Or import a static value from embedded java code. -- 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