()
| 2225 | |
| 2226 | |
| 2227 | def get_default_shuffle_method() -> str: |
| 2228 | if d := config.get("dataframe.shuffle.method", None): |
| 2229 | return d |
| 2230 | try: |
| 2231 | from distributed import default_client |
| 2232 | |
| 2233 | default_client() |
| 2234 | except (ImportError, ValueError): |
| 2235 | return "disk" |
| 2236 | |
| 2237 | try: |
| 2238 | from distributed.shuffle import check_minimal_arrow_version |
| 2239 | |
| 2240 | check_minimal_arrow_version() |
| 2241 | except ModuleNotFoundError: |
| 2242 | return "tasks" |
| 2243 | return "p2p" |
| 2244 | |
| 2245 | |
| 2246 | def get_meta_library(like): |
no test coverage detected