Hi all,

I'd like to start a discussion on SIP-246, "Separating what a data source
is from how it is explored":

https://github.com/apache/superset/issues/46736

In short: Explore, dashboards, alerts and reports, and the MCP service
reach every data source (saved datasets, SQL Lab queries and semantic
views) through one shared interface, Explorable. That interface promises
things not every source can do, so callers keep checking "is this a dataset
or a semantic view?" before deciding what to show or send. Recent
semantic-view fixes were each correct, but each added another such check.

The SIP asks for two things only:

1. The direction: a source keeps what it is (identity, owners, editing,
access checks), and callers ask what it supports through small optional
roles rather than branching on its kind. No source, datasets included, is
the model for the shared layer.

2. Step 1: an additive, optional declaration of a few operations (raw rows,
ad hoc metrics, samples, drill to detail, SQL Lab hand-off), exposed as an
optional "operations" list on the datasource-info endpoint. The existing
capability booleans stay and are derived from the same declaration. No
migration, no SDK change, no permission change, no feature flag. The draft
implementation is https://github.com/apache/superset/pull/46592 (it won't
be merged before this discussion concludes). The first consumers will be
the Samples tab and the drill-to-detail menu, switched to read the new list
in a small follow-up PR.

Agreeing on the direction is what opens up later work, each as its own
proposal. For example:

- chart and filter controls that adapt to what a source supports, instead
of special cases per source type;
- semantic views offering their own per-column time grains, rather than the
dataset's single global list;
- differences between database engines (no subqueries, no joins) reaching
Explore the same way, instead of through scattered checks;
- eventually, the dataset editor as an extension, with datasets as one
implementation among others.

None of these are proposed here; the SIP lists them as context.

Only four questions need an answer before a vote. Each has a proposed
answer, so a reply is only needed to object or suggest something better:

1. Operation names. We propose keeping the five: RAW_ROWS is the underlying
ability (an unaggregated query); SAMPLES and DRILL_TO_DETAIL are consumer
features kept separate because a source can support one without the others.
Open alternative: rename SQL_LAB to SQL_HANDOFF, since it means handing
executable SQL to SQL Lab rather than previewing it?

2. Compatibility window. We propose keeping the legacy booleans and the
required get_query_str for at least one major release after every consumer
has moved to "operations", with a deprecation warning during that release.
SDK-based semantic-layer providers are unaffected either way; this only
concerns code implementing Explorable directly outside the Superset
repository.

3. Absent versus empty. We propose that for additive capability fields,
absent means "unknown" (consumers fall back to today's booleans) and a
present list, even an empty one, is authoritative.

4. The removability test. We propose treating datasets as one replaceable
implementation among others: it should some day be possible to replace the
dataset implementation (for example, by moving the dataset editor into an
extension) without significant changes to semantic layers or consumers.
Nothing proposes deprecating datasets. Proposed order for today's gaps: the
True capability defaults first (handled in step 1), then dataset-style
chart references, then dataset-shaped required members.

Please reply here or comment on the issue. Following the SIP process, once
the discussion settles I'll start a separate [VOTE] thread.

Thanks,
-Mike

Reply via email to