Skip to content

docs: fix conflicting status legend and inconsistent issue links in expressions.md#4574

Open
andygrove wants to merge 1 commit into
apache:mainfrom
andygrove:fix-expressions-md-consistency
Open

docs: fix conflicting status legend and inconsistent issue links in expressions.md#4574
andygrove wants to merge 1 commit into
apache:mainfrom
andygrove:fix-expressions-md-consistency

Conversation

@andygrove
Copy link
Copy Markdown
Member

Which issue does this PR close?

N/A

Rationale for this change

The expressions.md reference page had two inconsistencies:

  1. Conflicting definition of the ⚠️ marker. The introduction described ⚠️ as "Supported (caveats)" whose divergent cases fall back to Spark by default and must be opted into with allowIncompatible. The status legend (and the actual ⚠️ rows, array_size and try_make_timestamp) define ⚠️ as "Incorrect by default": Comet runs natively by default and can return results that differ from Spark. The two definitions contradicted each other. The "falls back by default + allowIncompatible opt-in" behavior actually applies to certain ✅ expressions (for example cast, array_except), not to ⚠️ expressions.

  2. Inconsistent issue and pull request references. The Notes column mixed bare references (such as tracking #4098 and (#4288)) with full Markdown links. These docs render via Sphinx, where bare #NNNN references do not autolink, so the bare ones were not clickable.

What changes are included in this PR?

  • Rewrote the introduction so the ⚠️ description matches the status legend ("Incorrect by default"), and described the allowIncompatible opt-in separately as a property of certain ✅ expressions.
  • Converted every bare issue/PR reference in the tables to a full Markdown link ([#NNNN](https://github.com/apache/datafusion-comet/issues/NNNN)) for consistency with the references that were already linked.
  • Reran prettier to realign the affected tables (the bulk of the line count change is column re-padding).

How are these changes tested?

Documentation-only change. prettier --check "**/*.md" passes, matching the CI formatting check.

…xpressions.md

The introduction described the ⚠️ marker as "Supported (caveats)" whose
divergent cases fall back to Spark by default and require allowIncompatible,
which contradicts the status legend (and the actual ⚠️ rows): ⚠️ means
"Incorrect by default", running natively and potentially returning wrong
values. The intro is rewritten to match the legend, and the allowIncompatible
opt-in is described separately as a property of certain ✅ expressions.

Issue and pull request references in the Notes column were a mix of bare
numbers (such as "tracking apache#4098") and full Markdown links. Since these docs
render via Sphinx, where bare references do not autolink, all references are
now full links.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant