This is an automated email from the ASF dual-hosted git repository.

jli pushed a commit to branch 6.0
in repository https://gitbox.apache.org/repos/asf/superset.git

commit 458e1bf89122bc98b74e1754021d207525200419
Author: catpineapple <[email protected]>
AuthorDate: Sat Sep 6 02:11:38 2025 +0800

    fix(tests): one of integration test in TestSqlaTableModel  does not support 
MySQL "concat"  (#35007)
    
    Co-authored-by: Mehmet Salih Yavuz <[email protected]>
    (cherry picked from commit 9efb80dbf4a07a5272b22ae4ea5684d3ba535b9f)
---
 tests/integration_tests/model_tests.py | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/tests/integration_tests/model_tests.py 
b/tests/integration_tests/model_tests.py
index cf4c96fac6..e80fea7db8 100644
--- a/tests/integration_tests/model_tests.py
+++ b/tests/integration_tests/model_tests.py
@@ -448,11 +448,14 @@ class TestSqlaTableModel(SupersetTestCase):
             return None
         old_inner_join = spec.allows_joins
         spec.allows_joins = inner_join
+
+        # Use database-specific string concatenation syntax
         arbitrary_gby = (
-            "state OR gender OR '_test'"
+            "CONCAT(state, gender, '_test')"
             if get_example_database().backend == "mysql"
             else "state || gender || '_test'"
         )
+
         arbitrary_metric = dict(  # noqa: C408
             label="arbitrary", expressionType="SQL", 
sqlExpression="SUM(num_boys)"
         )

Reply via email to