Skip to content

TsFile format filter uses an inconsistent URL and is not available initially #8499

Open

Description

@ColinLeeo

Summary

There appear to be two related issues with the TsFile format filter on the Hugging Face Datasets page:

  1. The URL parameter for TsFile is inconsistent with other formats.
  2. TsFile is not initially shown in the format filter and only appears after visiting a TsFile-specific URL.

1. Inconsistent URL parameter

Other formats use URLs such as:

https://huggingface.co/datasets?format=format%3Ajson&sort=trending

However, the current URL for TsFile is:

https://huggingface.co/datasets?format=tsfile&sort=trending

The corresponding URL using the same convention as other formats does not work:

https://huggingface.co/datasets?format=format%3Atsfile&sort=trending

Should TsFile use the same convention as the other formats, such as format=format:tsfile? If TsFile intentionally requires a different parameter format, could you please clarify why or consider making the URL handling consistent?

2. TsFile is not initially shown in the format filter

When opening the Datasets page directly:

https://huggingface.co/datasets

TsFile does not appear in the Format filter list. :codex-annotation{index="1"}

However, after visiting the following URL:

https://huggingface.co/datasets?format=tsfile&sort=trending

TsFile appears in the Format filter list. :codex-annotation{index="2"}

In other words, users must first visit a TsFile-specific query URL before TsFile becomes available in the format filter. This may indicate that the format is only loaded or registered after the first query.

Steps to reproduce

  1. Open https://huggingface.co/datasets.
  2. View the Format filter list and confirm that TsFile is not listed.
  3. Open https://huggingface.co/datasets?format=tsfile&sort=trending.
  4. View the Format filter list again.
  5. TsFile is now listed.

Expected behavior

  • TsFile should be shown in the Format filter list immediately when the Datasets page is opened.
  • Users should not need to visit a TsFile-specific URL first.
  • The URL generated for TsFile should follow the same convention as the URLs for other formats.
  • Filtering by TsFile should work consistently through both the UI and the URL.

Could you please investigate why TsFile is not initially available in the format filter, and whether any additional configuration is required?

Activity

  1. AxelNoun commented on Aug 27, 2026

    @AxelNoun

    tsfile facet — neither URL names a format

    Findings only; no request for action. Figures carry their date. Retracted claims are kept.

    ?format=tsfile and ?format=format:tsfile are not two spellings of the same filter. They are not two routes to a format: facet either: tsfile is not in the Hub format taxonomy (n_formats = 10, 26 August, anonymous session). Each URL counts a population of tags written by hand in dataset-card YAML, living under other:. That is why they are not aliases — not because a router failed to normalise them.

    The two counts on 26 August, anonymous session: 804 and 695. The gap Δ = 109 is unchanged since 23 August, while both totals gained +37.


    What was not in the comment already on this issue

    The viewer cannot read a remote TsFile (C8′)

    dataset-viewer opens files streaming-only. TsFileReader rejects hf:// and https://; the same file passes locally, and also via hf:// if it is downloaded first. This is a remote non-seekable filesystem, not “the builder cannot stream” — that wording was measured on file://, which is local, and withdrawn (C8). errno 28 read as ENOSPC was withdrawn too: 28 is an SDK enum; POSIX stderr is EINVAL 22 (C11).

    One derived format:* value per repository (C13)

    Of 62 multi-extension repos with a green viewer, 0 carry two or more derived format:* values (4.8% bound at 95%, 26 August, anonymous session). A mixed csv+.tsfile witness could not have attributed the absence of format:tsfile to the taxonomy rather than to this rule: the Hub emits one value, and tsfile is not among the ten.

    29 / 62 only have a derived format that matches the majority extension. Derivation follows builder inference (file patterns, config, splits), not file counts. Making CSV dominant by file count — three CSV shards to one .tsfile, for example — does not guarantee format:csv.


    Context

    Inspected format:tsfile tags on cards are declared, never derived (60 cards, 0 dissenters). The active-filter chip on a cold /datasets load is injected by the front end: tsfile is not on it.

    Δ = 109 is the property of one owner (azithromycin); tagging practice is not (7 owners in A, HHI* = 0.0158).

    tsfile is absent from the 10-format list the endpoint exposes. Offline, derived values already recorded in this study’s reports — 6 observations, 2 distinct (json ×3, parquet ×3) — all fall inside that list. Coverage 2/10. json and parquet are the two formats the Hub derives most: if the endpoint were a display list that diverged from derivation, the gap would show up there first. The test is thin in breadth, not in relevance. A clean pass corroborates; it does not prove.

    C10 (no derivation from the .tsfile extension) is implied by C3 and C13; nothing was created on the Hub to check it.

    Figure What it measures Date Posture
    804 / 695 ?format=tsfile and ?format=format%3Atsfile 2026-08-26 anonymous session
    Δ = 109 gap, unchanged since 23 August while both totals gained +37 2026-08-26 anonymous session
    n_formats = 10 format taxonomy exposed by the API; tsfile absent 2026-08-26 anonymous session
    0 / 62 multi-extension viewer-ok repos carrying ≥ 2 derived format:*; 4.8% bound at 95% 2026-08-26 anonymous session
    29 / 62 repos whose derived format follows the majority extension 2026-08-26 anonymous session
    6 values, 2 distinct, coverage 2/10 observed derived values in the reports, compared to the H5 list 2026-08-26 offline

    Withdrawn, undecidable, open

    Kept: a retraction that is erased is a retraction that starts over.

    • C8 — “the TsFile builder cannot stream”, refuted on file://.
    • C11 — errno 28 read as ENOSPC. 28 is an SDK enum.

    Not decidable with public endpoints: whether format derivation is independent of the viewer job (C9). /valid returns 404; OpenAPI exposes only /is-valid. The failing row was reached 4 times (75% bound). Reopen if an endpoint listing viewer-valid datasets comes back. Fix ordering (C6′) inherited C9; in practice C8′ is enough — the viewer runs streaming-only.

    Still open, and not part of this account: the Δ = 109 cohort; second time-series point no earlier than 29 August.


    Method

    Measurements in an anonymous session, no token: a token makes restricted repos visible and moves every count. Exact tests are conditional on both margins; every zero cell is reported with its rule-of-three bound, and no p value is published without one. Convenience sampling frames carry existence claims only, never a rate.

    One observation in this study had never been made. A sample attributed to one experiment was a truncated set belonging to another, and the substitution survived a factor-of-two difference in size because it happened at synthesis rather than at reading.

  2. ColinLeeo commented on Sep 1, 2026

    @ColinLeeo
    Author

    Many thanks for the detailed investigation and explanation. This clarifies that
    ?format=tsfile and ?format=format:tsfile currently match different
    manually declared other: tag populations.

    From the TsFile side, there are two related follow-ups.

    1. Dataset Viewer read path

      TsFile support in the datasets builder has been merged in
      feat: add TsFile (Apache IoTDB) packaged builder with per-device wide format #8160, and the TsFile
      dependency has been added to Dataset Viewer in
      Bump py to 3.14.5 and datasets to 5.0 and add hermes traces support and tsfile dataset-viewer#3358.

      The Python dependency compatibility issue previously observed has been addressed on the TsFile side. TsFile PR #922, titled "Fix/relax pyarrow constraint", removed the upper bounds on PyArrow and now declares minimum versions by Python version: pyarrow>=16 for Python <3.13, pyarrow>=18 for Python 3.13, and pyarrow>=22 for Python >=3.14. The supported combinations were verified across Python 3.12, 3.13, and 3.14, as well as in the CI matrix. This removes the original PyArrow upper-bound conflict.

      The remaining technical gap is remote random-access reading. In streaming
      mode, the datasets streaming path uses xopen() to provide an
      fsspec-backed remote file object with seek/read semantics over HTTP Range
      requests. The current TsFile C++/Python Reader still opens its input as a
      local filesystem path, so it cannot consume that source yet.

      The TsFile community has already started implementing this capability in
      both the C++ Reader and Python bindings. The work is tracked in
      [Feature][C++][Python] Support remote random-access reading for TsFile apache/tsfile#930, with the goal of supporting
      remote random access while keeping the existing upper-level Reader and
      query semantics unchanged.

    2. Dataset upload and model training

      The TsFile community is actively uploading more TsFile datasets to Hugging
      Face. These datasets provide real inputs for remote-reader, indexing, and
      Dataset Viewer validation, and some are also part of the materials we use
      for time-series model training and experiments.

    We will continue updating this issue as the TsFile reader implementation and
    dataset uploads progress.

  3. AxelNoun commented on Oct 27, 2026

    @AxelNoun

    @ColinLeeo Thanks for the update, and sorry for the slow reply. Now that apache/tsfile#922 has shipped in tsfile 2.5.0, the pyarrow conflict that motivated #8517 is gone, so I have closed that PR. For streaming and the Dataset Viewer, remote random-access reading (apache/tsfile#930) is the remaining gap.

    I used Claude Code to prepare this comment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions