boluor opened a new pull request, #3872: URL: https://github.com/apache/doris-website/pull/3872
Several SQL-function reference pages contain examples of the form `SELECT ... FROM <table>` together with an expected result table, but the page never defines `<table>`. As written these examples cannot be run or reproduced — a reader who copies them gets `Table [...] does not exist`. This PR adds the missing `CREATE TABLE` + `INSERT` for each such table, carried in a standard HTML comment (`<!-- setup-sql ... -->`) placed just before the first example that uses the table. Because it is an HTML comment, **the rendered page is unchanged** and **no documented expected output is modified** — the comment only records the data the examples already assume, making each example self-contained and reproducible. The table contents were reverse-derived from the output already printed on each page (e.g. `get_format_test` from its `SELECT *`, `test_maketime` from its shown `hour`/`minute`/`sec` columns) and verified end-to-end on a Doris 4.1.1 cluster: every example now resolves its table and matches the documented output cell-for-cell. ### Pages (EN + ZH, version-4.x) | Function | Table added | | --- | --- | | `GET_FORMAT` | `get_format_test` | | `MAKETIME` | `test_maketime` | | `CONVERT_TO` | `class_test` | | `IPV4_NUM_TO_STRING` | `ipv4_bi` | | `IPV4_STRING_TO_NUM_OR_NULL` | `ipv4_str` | No `ja-source` changes; only EN + ZH `version-4.x`. 🤖 Generated with [Claude Code](https://claude.com/claude-code) -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
