kyuubi/dev
liangbowen b505c1eae5 [KYUUBI #5275] [DOC] Improve and fix comparation and regeneration for golden files
### _Why are the changes needed?_

- Extract common assertion method for verifying file contents
- Ensure integrity of the file by comparing the line count
- Correct the script name for Spark engine KDF doc generation from `gen_kdf.sh` to `gen_spark_kdf_docs.sh`
- Add `gen_hive_kdf_docs.sh` script for Hive engine KDF doc generation
- Fix incorrect hints for Ranger spec file generation
- shows the line number of the incorrect file content
- Streamingly read file content by line with buffered support
- Regeneration hints:

<img width="656" alt="image" src="https://github.com/apache/kyuubi/assets/1935105/d1a7cb70-8b63-4fe9-ae27-80dadbe84799">

### _How was this patch tested?_
- [ ] Add some test cases that check the changes thoroughly including negative and positive cases if possible

- [ ] Add screenshots for manual tests if appropriate

- [x] [Run test](https://kyuubi.readthedocs.io/en/master/contributing/code/testing.html#running-tests) locally before make a pull request

### _Was this patch authored or co-authored using generative AI tooling?_

No.

Closes #5275 from bowenliang123/doc-regen-hint.

Closes #5275

9af97ab86 [Bowen Liang] implicit source position
07020c74d [liangbowen] assertFileContent

Lead-authored-by: liangbowen <liangbowen@gf.com.cn>
Co-authored-by: Bowen Liang <liangbowen@gf.com.cn>
Signed-off-by: Bowen Liang <liangbowen@gf.com.cn>
(cherry picked from commit d15322d568)
Signed-off-by: Bowen Liang <liangbowen@gf.com.cn>
2023-09-13 17:41:56 +08:00
..
gen [KYUUBI #5275] [DOC] Improve and fix comparation and regeneration for golden files 2023-09-13 17:41:56 +08:00
kyuubi-codecov [KYUUBI #5177] Use Scala binary version placeholder in Maven module's artifactId suffix 2023-08-20 16:03:23 +00:00
kyuubi-tpcds [KYUUBI #5177] Use Scala binary version placeholder in Maven module's artifactId suffix 2023-08-20 16:03:23 +00:00
checkout_pr.sh
dependencyList [KYUUBI #5234] Upgrade Jetty version from 9.4.51.v20230217 to 9.4.52.v20230823 2023-09-04 21:46:51 +08:00
merge_kyuubi_pr.py [KYUUBI #5152] Check milestone and assignees when merging pull request 2023-08-14 09:52:18 +08:00
reformat [KYUUBI #5018] Make kyuubi spark extension compatible with Spark3.4 2023-07-06 18:22:23 +08:00