Skip to content

HIVE-29759: Add HPLSQL documentation to Apache Hive Official Documentation website. - #115

Merged
zabetak merged 3 commits into
apache:mainfrom
mdayakar:HIVE-29759_HPLSQL-Docs
Sep 3, 2026
Merged

HIVE-29759: Add HPLSQL documentation to Apache Hive Official Documentation website.#115
zabetak merged 3 commits into
apache:mainfrom
mdayakar:HIVE-29759_HPLSQL-Docs

Conversation

@mdayakar

@mdayakar mdayakar commented Aug 13, 2026

Copy link
Copy Markdown
Contributor

Add HPLSQL documentation to Apache Hive Official Documentation website

Currently HPLSQL code is present in the Apache Hive's github repository but the corresponding documentation is present at http://hplsql.org/home website. This site is maintained by Dmitry Tolpeko so had a discussion with him and he is ok to host HPLSQL documentation content on the Apache Hive's official documentation page, thanks Dmitry Tolpeko.

Refer https://lists.apache.org/thread/tj3ptv38fj13c1rgwrkvk9o921rzn5tm thread for ore details.

The first commit represents converting the DokuWiki source pages into Hugo-flavored Markdown and lands them under a new content/docs/latest/user/hive-hplsql/. Later we need to modify the content as per current HPLSQL code present in Apache Hive github.

The second commit represents the changes as per current HPLSQL code present in the Apache Hive github repository. Initially it was provided as a stand alone command line tool. As a part of (HIVE-24230) HPL/SQL has been re-architected to an integrated part of HiveServer (HS2). Document also changed accordingly in second commit.
Some files intensionally renamed to *.md.bak which will not be displayed in the web documentation but they will be available in the github repository for history purpose for a developer. As http://hplsql.org/doc site is no more available, we will not be getting the history to check some details.

@mdayakar mdayakar changed the title HIVE-29759: Add HPLSQL documentation to Apache Hive Official Documentation website. [WIP]HIVE-29759: Add HPLSQL documentation to Apache Hive Official Documentation website. Aug 13, 2026
@mdayakar
mdayakar force-pushed the HIVE-29759_HPLSQL-Docs branch from ee6772b to 0f105a5 Compare August 25, 2026 14:05
@mdayakar mdayakar changed the title [WIP]HIVE-29759: Add HPLSQL documentation to Apache Hive Official Documentation website. HIVE-29759: Add HPLSQL documentation to Apache Hive Official Documentation website. Aug 25, 2026
@mdayakar
mdayakar force-pushed the HIVE-29759_HPLSQL-Docs branch from 0f105a5 to 714b2d7 Compare August 27, 2026 07:41
@thomasrebele

thomasrebele commented Aug 27, 2026

Copy link
Copy Markdown
Contributor

Thank you for the work of on the HPLSQL documentation!

Other PR's to hive-site have "All checks have passed". This one has "1 workflow awaiting approval". Why did it not run the CI?

Since last week, hive-site's CI will fail on warnings. If the CI for this PR has not run, how do we know that the CI does not fail after the merge?

Edit: just saw that this branch is some commits behind the main branch. Could you rebase, please?


You can set all options dynamically using the [SET]({{< ref "assign" >}}) statement in a HPL/SQL script: `SET option=value;`

<!-- HPL/SQL configuration is stored in *hplsql-site.xml* file. This file stores options in the following format:

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is this part of the doc commented out? Either it should be part of the doc, or the block should be removed.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the explanation, @mdayakar. We can keep the block to track the history. Could you add a comment to that block to explain why it has been commented out, please?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added the comment.

DROP FUNCTION hello;
```

<!-- ## Permanent Functions and Stored Procedures

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Keep that block? See my other comment.

@thomasrebele thomasrebele left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some parts of the md files have been commented out with <!-- -->. This also concerns a lot of **Version** information. I think it makes sense to show that info.

@mdayakar

Copy link
Copy Markdown
Contributor Author

Some parts of the md files have been commented out with <!-- -->. This also concerns a lot of **Version** information. I think it makes sense to show that info.

Thanks for the review @thomasrebele. I intensionally commented some parts which are not applicable as per current code. I want to keep the text as commented (which will not be shown to the end user) for referring purpose for a developer. Also I commented Version information as this version specific to HPLSQL tool which was delivered as a separate tool but as a part of (HIVE-24230) HPL/SQL has been re-architected to an integrated part of HiveServer (HS2). So these versions are not applicable so commented them. HPLSQL documentation was hosted on http://hplsql.org site, now that site is down so to see the history we don't have any reference so I just commented the unrelated data for future reference, anyway that will not be shown to the enduser.

@mdayakar
mdayakar force-pushed the HIVE-29759_HPLSQL-Docs branch from 714b2d7 to f992368 Compare August 31, 2026 16:56

@thomasrebele thomasrebele left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for the clarification about the <!-- --> blocks in the PR.

I did a very superficial review of the changes, and I've noticed that a few tables incorrectly use the first row as the header. It would be nice to fix that. As this is mainly cosmetic, it could even be merged as-is and fixed later. So LGTM. I don't have committer rights, so someone else needs to decide about the table headers anyways.

Comment thread content/docs/latest/user/hive-hplsql/functions/to-timestamp.md Outdated
Comment thread content/docs/latest/user/hive-hplsql/functions/part-count.md Outdated
Comment thread content/docs/latest/user/hive-hplsql/functions/part-count-by.md Outdated
Comment thread content/docs/latest/user/hive-hplsql/functions/min-part-string.md Outdated
Comment thread content/docs/latest/user/hive-hplsql/functions/min-part-int.md Outdated
Comment thread content/docs/latest/user/hive-hplsql/functions/max-part-string.md Outdated
Comment thread content/docs/latest/user/hive-hplsql/functions/max-part-int.md Outdated
Comment thread content/docs/latest/user/hive-hplsql/functions/max-part-int.md Outdated
Comment thread content/docs/latest/user/hive-hplsql/functions/max-part-date.md Outdated
Comment thread content/docs/latest/user/hive-hplsql/functions/max-part-date.md Outdated

@zabetak zabetak left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In terms of structure I would prefer to see the HPL/SQL documentation directly under contents/docs/latest similar to hcatalog or if we consider it a language extension it would be better placed under contents/docs/latest/language. In addition, I would rename the hive-hplsql directory simply to hplsql since we are already in the Hive site.

This is the only change that I would like to see before merging to minimize changes in the public facing URLs later on.

Comment thread content/docs/latest/user/hive-hplsql/_index.md Outdated
…ation website.

Updated the docs as per latest codebase.
@mdayakar
mdayakar force-pushed the HIVE-29759_HPLSQL-Docs branch from f992368 to fb106b7 Compare September 2, 2026 12:03
@mdayakar

mdayakar commented Sep 2, 2026

Copy link
Copy Markdown
Contributor Author

In Dokuwiki format, we can have a table format without header but in markdown pages without header table format is not possible.

…ation website.

Changed hplsql doc location from content/docs/latest/user/hive-hplsql to content/docs/latest/language/hplsql.
@mdayakar

mdayakar commented Sep 2, 2026

Copy link
Copy Markdown
Contributor Author

In terms of structure I would prefer to see the HPL/SQL documentation directly under contents/docs/latest similar to hcatalog or if we consider it a language extension it would be better placed under contents/docs/latest/language. In addition, I would rename the hive-hplsql directory simply to hplsql since we are already in the Hive site.

This is the only change that I would like to see before merging to minimize changes in the public facing URLs later on.

Changed the HPLSQl document location from content/docs/latest/user/hive-hplsql to content/docs/latest/language/hplsql as suggested.

@zabetak
zabetak merged commit 044bf8b into apache:main Sep 3, 2026
2 checks passed
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.

3 participants