-
Notifications
You must be signed in to change notification settings - Fork 7
Add action for retrieving table record count #31
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
Open
s-akhtar-baig
wants to merge
6
commits into
main
Choose a base branch
from
record_count
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
96dc0a6
Add record count operation
s-akhtar-baig 1d3b30e
Reload table scan after operations that commit to a table
s-akhtar-baig 35585f4
Fix info message
s-akhtar-baig c098cb5
Add short option for table format
s-akhtar-baig dd9303b
signed-off s-akhtar-baig
s-akhtar-baig ca0371b
Update supported operations
s-akhtar-baig File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -65,13 +65,13 @@ java -jar /home/java-iceberg-cli/target/<jar_name> --help | |
| ### CLI | ||
| Pass in the URI to the Hive Metastore using -u or --uri options and optionally specify a storage path when creating a new namespace using -w or --warehouse options. By default, the default FS value specified in Hive's configuration file will be used as the warehouse path. | ||
|
|
||
| Set credentials for the object store using environment variables. Please note that you would need to specify AWS_ENDPOINT if using a non-AWS object store. | ||
| Set credentials for the object store using environment variables. Please note that you would need to specify ENDPOINT if using a non-AWS object store. | ||
| ``` | ||
| export AWS_ACCESS_KEY_ID= | ||
| export AWS_SECRET_ACCESS_KEY= | ||
| export AWS_REGION= | ||
| # specify endpoint to a non-AWS object store, if applicable | ||
| export AWS_ENDPOINT= | ||
| export ENDPOINT= | ||
| ``` | ||
|
|
||
| Credentials can also be passed to the CLI as: | ||
|
|
@@ -86,7 +86,7 @@ export AWS_ACCESS_KEY_ID= | |
| export AWS_SECRET_ACCESS_KEY= | ||
| export AWS_REGION= | ||
| # specify endpoint to a non-AWS object store, if applicable | ||
| export AWS_ENDPOINT= | ||
| export ENDPOINT= | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Same as above. |
||
| export URI= | ||
| export WAREHOUSE= | ||
| ``` | ||
|
|
@@ -105,7 +105,7 @@ usage: java -jar <jar_name> [options] command [args] | |
| -c,--credential <credentials> Supported credentials : AWS | ||
| --catalog <value> Read properties for this catalog from | ||
| the config file | ||
| --format <iceberg|hive> The format of the table we want to | ||
| -m,--format <iceberg|hive> The format of the table we want to | ||
| display | ||
| -h,--help Show this help message | ||
| -o,--output <console|csv|json> Show output in this format | ||
|
|
@@ -117,12 +117,13 @@ Commands: | |
| drop Drop a table or a namespace | ||
| schema Fetch schema of a table | ||
| metadata Get table metadata | ||
| recordcount Get total number of records in a table | ||
| read Read from a table | ||
| commit Commit file(s) to a table | ||
| rewrite Rewrite file(s) in a table | ||
| list List tables or namespaces | ||
| type Fetch table type | ||
| uuid Fetch uuid of a table | ||
| rewrite Rewrite (replace) file(s) in a table | ||
| spec Fetch partition spec of a table | ||
| rename Rename a table a table | ||
| create Create a table or a namespace | ||
|
|
@@ -132,6 +133,7 @@ Commands: | |
| write Write to a table | ||
| snapshot Fetch latest or all snapshot(s) of a table | ||
| tasks List scan tasks of a table | ||
| alter Alter a table | ||
| ``` | ||
| Each subcommand provides a help message of its own. | ||
| ``` | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Should we change it to
ENDPOINT_URL?