[Ideas] Support Adding Optional Arbitrary Columns to Directory Tables #1185
Unanswered
xtangcode
asked this question in
Ideas / Feature Requests
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Description
Summary
Allow users to define optional arbitrary columns when creating a directory table, providing enhanced flexibility to manage table rows and store custom metadata.
Detailed Description
Currently, creating a directory table in Apache Cloudberry does not support defining additional columns beyond the default structure. This feature request aims to enable users to specify custom columns at the time of table creation, similar to the flexibility provided by standard SQL CREATE TABLE syntax.
Proposed Syntax Example
CREATE DIRECTORY TABLE table_name ( column_name1 data_type1 [, column_name2 data_type2, ...] );
This syntax aligns with PostgreSQL-style table creation, allowing users to list column names and their respective data types within parentheses. For example:
CREATE DIRECTORY TABLE user_files ( file_size BIGINT, creation_date TIMESTAMP, metadata JSONB );
Use case/motivation
Related issues
No response
Are you willing to submit a PR?
Beta Was this translation helpful? Give feedback.
All reactions