{"record":{"id":"22292a157a23679e","repo":"microsoft/qlib","slug":"unsupported-file-format-suffix","errorCode":null,"errorMessage":"Unsupported file format: {suffix}","messagePattern":"Unsupported file format: (.+?)","errorType":"validation","errorClass":"ValueError","httpStatus":null,"severity":"error","filePath":"scripts/dump_bin.py","lineNumber":50,"sourceCode":"    Returns\n    -------\n    pd.DataFrame\n    \"\"\"\n    file_path = Path(file_path).expanduser()\n    suffix = file_path.suffix.lower()\n\n    keep_keys = {\".csv\": (\"low_memory\",)}\n    kept_kwargs = {}\n    for k in keep_keys.get(suffix, []):\n        if k in kwargs:\n            kept_kwargs[k] = kwargs[k]\n\n    if suffix == \".csv\":\n        return pd.read_csv(file_path, **kept_kwargs)\n    elif suffix == \".parquet\":\n        return pd.read_parquet(file_path, **kept_kwargs)\n    else:\n        raise ValueError(f\"Unsupported file format: {suffix}\")\n\n\nclass DumpDataBase:\n    INSTRUMENTS_START_FIELD = \"start_datetime\"\n    INSTRUMENTS_END_FIELD = \"end_datetime\"\n    CALENDARS_DIR_NAME = \"calendars\"\n    FEATURES_DIR_NAME = \"features\"\n    INSTRUMENTS_DIR_NAME = \"instruments\"\n    DUMP_FILE_SUFFIX = \".bin\"\n    DAILY_FORMAT = \"%Y-%m-%d\"\n    HIGH_FREQ_FORMAT = \"%Y-%m-%d %H:%M:%S\"\n    INSTRUMENTS_SEP = \"\\t\"\n    INSTRUMENTS_FILE_NAME = \"all.txt\"\n\n    UPDATE_MODE = \"update\"\n    ALL_MODE = \"all\"\n\n    def __init__(","sourceCodeStart":32,"sourceCodeEnd":68,"githubUrl":"https://github.com/microsoft/qlib/blob/79633dd9506ea689e5400dea0197717b5b3d74b7/scripts/dump_bin.py#L32-L68","documentation":"Error \"Unsupported file format: {suffix}\" thrown in microsoft/qlib.","triggerScenarios":"This error is raised at scripts/dump_bin.py:50 when the guard condition fails: \"Unsupported file format: {suffix}\". It triggers when the code path receives input or a state that violates the precondition checked at this point — e.g. an unimplemented abstract method being called, an unsupported argument type/value, or an invalid configuration. To avoid it, satisfy the documented precondition before this call: implement the required method in your subclass, or pass a supported value of the expected type as described by the message.","commonSituations":"See trigger scenarios.","solutions":["Use a supported file format (e.g. .csv) as input to dump_bin.py.","Convert your data file to a supported format before dumping."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"79633dd9506ea689e5400dea0197717b5b3d74b7","analyzedAt":"2026-08-15T07:01:27.511Z","schemaVersion":2},"datasetVersion":"2026-08-15T22:17:37.221Z"}