-
Notifications
You must be signed in to change notification settings - Fork 998
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
[core] Introduce Object Table to manage unstructured files #4459
Conversation
* @return A long value representing the time the file was last accessed, measured in | ||
* milliseconds since the epoch (UTC January 1, 1970). | ||
*/ | ||
default long getAccessTime() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think getLatestAccessTime may better?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same to getModificationTime
.
* CALL sys.refresh_object_table('tableId') | ||
* </code></pre> | ||
*/ | ||
public class RefreshObjectTableProcedure extends ProcedureBase { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add this to doc?
|
||
@Override | ||
public TableCommitImpl newCommit(String commitUser) { | ||
throw new UnsupportedOperationException("Object table does not support Write."); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Object table does not support Commit.
table = | ||
ObjectTable.builder() | ||
.underlyingTable(table) | ||
.objectLocation(options.objectLocation()) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Check options.objectLocation() is null?
”We plan to introduce an Object Table to provide metadata indexes for unstructured data objects in the specified Object Storage storage directory.“ Hi, jingsong. |
Unstructured data is definitely not stored in Paimon for the most cases, so what we want to do here is simply map these files so that users can process the metadata of unstructured files and see if they need to read these files as needed. |
4ba3d37
to
8d8deba
Compare
+1 |
Purpose
We plan to introduce an Object Table to provide metadata indexes for unstructured data objects in the specified Object Storage storage directory. Object tables allow users to analyze unstructured data in Object Storage:
The object table is managed by Catalog and can also have access permissions and the ability to manage blood relations.
The schema for Object Table is:
The SQL usage is:
Tests
ObjectTableITCase
API and Format
Documentation