Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[docs] Update connector/hive.rst for hidden metadata columns #22642

Merged

Conversation

steveburnett
Copy link
Contributor

@steveburnett steveburnett commented Apr 30, 2024

Description

Add int64_t information for $file_size and $file_modified_time in https://github.com/prestodb/presto/blob/master/presto-docs/src/main/sphinx/connector/hive.rst.

Motivation and Context

Fixes #22627.

Impact

Documentation.

Test Plan

Local doc build.

Screenshot of changed topic:
Screenshot 2024-04-30 at 1 30 43 PM

Contributor checklist

  • Please make sure your submission complies with our development, formatting, commit message, and attribution guidelines.
  • PR description addresses the issue accurately and concisely. If the change is non-trivial, a GitHub Issue is referenced.
  • Documented new properties (with its default value), SQL syntax, functions, or other functionality.
  • If release notes are required, they follow the release notes guidelines.
  • Adequate tests were added if applicable.
  • CI passed.

Release Notes

== NO RELEASE NOTE ==

@steveburnett steveburnett self-assigned this Apr 30, 2024
@steveburnett steveburnett requested a review from a team as a code owner April 30, 2024 17:38
@github-actions github-actions bot added the docs label Apr 30, 2024
@steveburnett steveburnett changed the title Update connector/hive.rst for hidden metadata columns [docs] Update connector/hive.rst for hidden metadata columns Apr 30, 2024
elharo
elharo previously approved these changes Apr 30, 2024
* ``$file_size`` : Filesize for the given row
* ``$file_modified_time`` : Last file modified time for the given row
* ``$file_size`` : Filesize for the given row (int64_t)
* ``$file_modified_time`` : Last file modified time for the given row (int64_t)
Copy link
Contributor

Choose a reason for hiding this comment

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

wouldn't hurt to define this one a little further. Is it seconds, milliseconds, or microseconds since the epoch? (or even something else?) But that can be for a later PR

Copy link
Contributor Author

Choose a reason for hiding this comment

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

wouldn't hurt to define this one a little further. Is it seconds, milliseconds, or microseconds since the epoch? (or even something else?) But that can be for a later PR

I could add that in this one.

@aditi-pandit, @agrawalreetika: would either of you tell me what $file_modified_time is defined as so I can add it to the doc, please?

Copy link
Contributor

Choose a reason for hiding this comment

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

@steveburnett : Correction file_modified_time is milliseconds since epoch reference https://hadoop.apache.org/docs/stable/api/org/apache/hadoop/fs/FileStatus.html (getModificationTime)

Thanks @agrawalreetika

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks @aditi-pandit and @agrawalreetika! I will add this in this PR.

@steveburnett
Copy link
Contributor Author

steveburnett commented May 9, 2024

Updated doc, squashed commits and pushed, tests have passed.

Please review, @elharo, @aditi-pandit, @agrawalreetika.

@steveburnett steveburnett merged commit 81f67a9 into prestodb:master May 13, 2024
57 checks passed
@steveburnett steveburnett deleted the steveburnett-hidden-metadata branch May 15, 2024 18:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

Document types of $file_size and $file_modified_time
5 participants