From 0796d8ef6026bf1c29b2cf8bd4ba2dc62c92d7e4 Mon Sep 17 00:00:00 2001 From: andrew Date: Wed, 30 Oct 2024 09:59:27 +0300 Subject: [PATCH] fix modulo precedence --- mindsdb_sql/parser/dialects/mindsdb/parser.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mindsdb_sql/parser/dialects/mindsdb/parser.py b/mindsdb_sql/parser/dialects/mindsdb/parser.py index 0523342..c4af8cf 100644 --- a/mindsdb_sql/parser/dialects/mindsdb/parser.py +++ b/mindsdb_sql/parser/dialects/mindsdb/parser.py @@ -46,7 +46,7 @@ class MindsDBParser(Parser): ('nonassoc', LESS, LEQ, GREATER, GEQ, IN, NOT_IN, BETWEEN, IS, IS_NOT, NOT_LIKE, LIKE), ('left', JSON_GET), ('left', PLUS, MINUS), - ('left', STAR, DIVIDE, TYPECAST), + ('left', STAR, DIVIDE, TYPECAST, MODULO), ('right', UMINUS), # Unary minus operator, unary not )