diff --git a/pyproject.toml b/pyproject.toml index bfa66afe867..c3738721dba 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -103,7 +103,7 @@ dependencies = [ "sqlalchemy-utils>=0.38.0, <0.43", # expanding lowerbound to work with pydoris "sqlglot>=30.8.0, <31", # newer pandas needs 0.9+ - "tabulate>=0.9.0, <1.0", + "tabulate>=0.10.0, <1.0", "typing-extensions>=4, <5", "waitress; sys_platform == 'win32'", "watchdog>=6.0.0", diff --git a/requirements/base.txt b/requirements/base.txt index 8f652e4e8fa..ef39408ea77 100644 --- a/requirements/base.txt +++ b/requirements/base.txt @@ -421,7 +421,7 @@ sqlglot==30.8.0 # apache-superset-core sshtunnel==0.4.0 # via apache-superset (pyproject.toml) -tabulate==0.9.0 +tabulate==0.10.0 # via apache-superset (pyproject.toml) trio==0.30.0 # via diff --git a/requirements/development.txt b/requirements/development.txt index 6b1f3c447af..8b5c701569f 100644 --- a/requirements/development.txt +++ b/requirements/development.txt @@ -1006,7 +1006,7 @@ statsd==4.0.1 # via apache-superset syntaqlite==0.1.0 # via apache-superset -tabulate==0.9.0 +tabulate==0.10.0 # via # -c requirements/base-constraint.txt # apache-superset diff --git a/tests/unit_tests/charts/test_client_processing.py b/tests/unit_tests/charts/test_client_processing.py index 7cb64c233f2..eed1772b895 100644 --- a/tests/unit_tests/charts/test_client_processing.py +++ b/tests/unit_tests/charts/test_client_processing.py @@ -37,9 +37,9 @@ def test_pivot_df_no_cols_no_rows_single_metric(): assert ( df.to_markdown() == """ -| | SUM(num) | -|---:|------------:| -| 0 | 8.06797e+07 | +| | SUM(num) | +|---:|-----------:| +| 0 | 80679663 | """.strip() ) @@ -60,7 +60,7 @@ def test_pivot_df_no_cols_no_rows_single_metric(): == f""" | | ('SUM(num)',) | |:-----------------|----------------:| -| ('{_("Total")} (Sum)',) | 8.06797e+07 | +| ('{_("Total")} (Sum)',) | 80679663 | """.strip() ) @@ -82,7 +82,7 @@ def test_pivot_df_no_cols_no_rows_single_metric(): == """ | | ('SUM(num)',) | |:-----------------|----------------:| -| ('Total (Sum)',) | 8.06797e+07 | +| ('Total (Sum)',) | 80679663 | """.strip() ) @@ -105,7 +105,7 @@ def test_pivot_df_no_cols_no_rows_single_metric(): == f""" | | ('{_("Total")} (Sum)',) | |:--------------|-------------------:| -| ('SUM(num)',) | 8.06797e+07 | +| ('SUM(num)',) | 80679663 | """.strip() ) @@ -127,7 +127,7 @@ def test_pivot_df_no_cols_no_rows_single_metric(): == f""" | | ('SUM(num)',) | ('Total (Sum)',) | |:-----------------|----------------:|-------------------:| -| ('{_("Total")} (Sum)',) | 8.06797e+07 | 8.06797e+07 | +| ('{_("Total")} (Sum)',) | 80679663 | 80679663 | """.strip() ) @@ -142,9 +142,9 @@ def test_pivot_df_no_cols_no_rows_two_metrics(): assert ( df.to_markdown() == """ -| | SUM(num) | MAX(num) | -|---:|------------:|-----------:| -| 0 | 8.06797e+07 | 37296 | +| | SUM(num) | MAX(num) | +|---:|-----------:|-----------:| +| 0 | 80679663 | 37296 | """.strip() ) @@ -165,7 +165,7 @@ def test_pivot_df_no_cols_no_rows_two_metrics(): == f""" | | ('SUM(num)',) | ('MAX(num)',) | |:-----------------|----------------:|----------------:| -| ('{_("Total")} (Sum)',) | 8.06797e+07 | 37296 | +| ('{_("Total")} (Sum)',) | 80679663 | 37296 | """.strip() ) @@ -187,7 +187,7 @@ def test_pivot_df_no_cols_no_rows_two_metrics(): == """ | | ('SUM(num)',) | ('MAX(num)',) | |:-----------------|----------------:|----------------:| -| ('Total (Sum)',) | 8.06797e+07 | 37296 | +| ('Total (Sum)',) | 80679663 | 37296 | """.strip() ) @@ -210,8 +210,8 @@ def test_pivot_df_no_cols_no_rows_two_metrics(): == f""" | | ('{_("Total")} (Sum)',) | |:--------------|-------------------:| -| ('SUM(num)',) | 8.06797e+07 | -| ('MAX(num)',) | 37296 | +| ('SUM(num)',) | 80679663 | +| ('MAX(num)',) | 37296 | """.strip() ) @@ -234,7 +234,7 @@ def test_pivot_df_no_cols_no_rows_two_metrics(): == f""" | | ('SUM(num)',) | ('MAX(num)',) | ('{_("Total")} (Sum)',) | |:-----------------|----------------:|----------------:|-------------------:| -| ('{_("Total")} (Sum)',) | 8.06797e+07 | 37296 | 8.0717e+07 | +| ('{_("Total")} (Sum)',) | 80679663 | 37296 | 80716959 | """.strip() ) @@ -1839,8 +1839,8 @@ def test_table(): assert ( formatted.to_markdown() == """ -| | count | -|---:|:-----------| +| | count | +|---:|-----------:| | 0 | 80,679,663 | """.strip() )