⌘K ctrl+k
Search Shortcut cmd + k | ctrl + k
DuckDB 2.0 ドキュメント 全文検索
per page, with , order by , clip by
Results of 1 - 10 of about 34 for bucket (0.002 sec.)
Timestamp with Time Zone Functions 12063
This section describes functions and operators for examining and manipulating TIMESTAMP WITH TIME ZONE (or TIMESTAMPTZ ) values . See also the related TIMESTAMP functions . Time zone support is provided by the built-in ICU extension . In th ... strptime(text, format) Converts string to TIMESTAMP WITH TIME ZONE according to the format string if %Z is specified. time_bucket(bucket_width, timestamptz[, offset]) Truncate timestamptz to a grid of width bucket_width . The grid is anchored at 2000-0 ... 1-01 00:00:00+00:00[ + offset] when bucket_width is a number of months or coarser units, else 2000-01-03 00:00:00+00:00[ + offset] . Note that 2000-01-03 is a Monday ... . time_bucket(bucket_width, timestamptz[, origin]) Truncate timestamptz to a grid of width bucket_width . The grid is anchored at the or ...
https://man.mtool.work/duckdb/2.0/sql/functions/timestamptz.html
Date Functions 11935
This section describes functions and operators for examining and manipulating DATE values. Date Operators The table below shows the available mathematical operators for DATE types. Operator Description Example Result + addition of days (int ... The (English) name of the month. strftime(date, format) Converts a date to a string according to the format string . time_bucket(bucket_width, date[, offset]) Truncate date to a grid of width bucket_width . The grid is anchored at 2000-01-01[ + offset ... ] when bucket_width is a number of months or coarser units, else 2000-01-03[ + offset] . Note that 2000-01-03 is a Monday. time_bucket(b ... ucket_width, date[, origin]) Truncate timestamptz to a grid of width bucket_width . The grid is anchored at the origin timestamp, which defaults to 2000-01-01 when bucket_width is a number of months ...
https://man.mtool.work/duckdb/2.0/sql/functions/date.html
S3 API Support 11328
The httpfs extension supports reading/writing/ globbing files on object storage servers using the S3 API. S3 offers a standard API to read and write to remote files (while regular http servers, predating S3, do not offer a common write API) ... e. See Selecting a Profile . config Provider The default provider, config (i.e., user-configured), allows access to the S3 bucket by manually providing a key. For example: CREATE OR REPLACE SECRET secret ( TYPE s3, PROVIDER config, KEY_ID '⟨AKIAIOSFODN ... on⟩.amazonaws.com' . Now, to query using the above secret, simply query any s3:// prefixed file: SELECT * FROM 's3://⟨your-bucket⟩/⟨your_file⟩.parquet'; credential_chain Provider The credential_chain provider automatically fetches credentials using the ... he ID of the key to use S3 , GCS , R2 STRING - REGION The region for which to authenticate (should match the region of the bucket to query) S3 , GCS , R2 STRING us-east-1 SECRET The secret of the key to use S3 , GCS , R2 STRING - SESSION_TOKEN Optional ...
https://man.mtool.work/duckdb/2.0/core_extensions/httpfs/s3api.html
Timestamp Functions 10641
This section describes functions and operators for examining and manipulating TIMESTAMP values . See also the related TIMESTAMPTZ functions . Timestamp Operators The table below shows the available mathematical operators for TIMESTAMP types ... timestamp according to the format string . Throws an error on failure. To return NULL on failure, use try_strptime . time_bucket(bucket_width, timestamp[, offset]) Truncate timestamp to a grid of width bucket_width . The grid is anchored at 2000-01-01 ... 00:00:00[ + offset] when bucket_width is a number of months or coarser units, else 2000-01-03 00:00:00[ + offset] . Note that 2000-01-03 is a Monday. time ... _bucket(bucket_width, timestamp[, origin]) Truncate timestamp to a grid of width bucket_width . The grid is anchored at the origin ...
https://man.mtool.work/duckdb/2.0/sql/functions/timestamp.html
Delta Extension 10193
The delta extension adds support for the Delta Lake open-source storage format . It is built using the Delta Kernel . The extension reads Delta tables, local and remote, and writes them: it can create tables and append to them. For implemen ... able refer to the same table: ATTACH 'file:///⟨path⟩' AS my_table (TYPE delta); SELECT * FROM my_table; Reading from an S3 Bucket To scan a Delta table in an S3 bucket , run: SELECT * FROM delta_scan('s3://⟨my_bucket⟩/⟨path⟩'); To authenticate, create ... a secret : CREATE SECRET ( TYPE s3, PROVIDER credential_chain ); SELECT * FROM delta_scan('s3://⟨my_bucket⟩/⟨path⟩'); For a public bucket, you may need to set its region in a secret: CREATE SECRET ( TYPE s3, REGION '⟨my_region⟩' ... ); SELECT * FROM delta_scan('s3://⟨my_bucket⟩/⟨path⟩'); Reading from Azure Blob Storage To scan a Delta table in an Azure Blob Storage container , run: SELECT * FROM d ...
https://man.mtool.work/duckdb/2.0/core_extensions/delta.html
SeaweedFS Import 10193
Prerequisites For SeaweedFS , the S3-compatible gateway allows you to use DuckDB's S3 support to read and write from SeaweedFS buckets. This requires the httpfs extension , which can be installed using the INSTALL SQL command. This only nee ... s": ["Admin", "Read", "Write", "List", "Tagging"] } ] } Then start the whole SeaweedFS stack in one container and create a bucket: docker run -d --name seaweedfs -p 8333:8333 \ -v "$(pwd)/s3config.json:/etc/seaweedfs/s3config.json" \ chrislusf/seaweedf ... s:latest \ mini -dir=/data -s3.config=/etc/seaweedfs/s3config.json echo "s3.bucket.create -name ⟨your-bucket⟩" | \ docker exec -i seaweedfs weed shell -master=localhost:9333 The S3 endpoint listens on port ... ials, you can query the data using DuckDB's built-in methods, such as read_csv or read_parquet : SELECT * FROM 's3://⟨your-bucket⟩/⟨file⟩.csv'; SELECT * FROM read_parquet('s3://⟨your-bucket⟩/⟨file⟩.parquet'); Writing works the same way, including glob ...
https://man.mtool.work/duckdb/2.0/guides/network_cloud_storage/seaweedfs_import....
S3 Express One 9682
In late 2023, AWS announced the S3 Express One Zone , a high-speed variant of traditional S3 buckets. DuckDB can read S3 Express One buckets using the httpfs extension . Credentials and Configuration The configuration of S3 Express One bucket ... ets is similar to regular S3 buckets with one exception: you must specify the endpoint according to the following pattern: s3express-⟨availability_zone⟩.⟨regi ... on⟩.amazonaws.com where the ⟨availability_zone⟩ (e.g., use-az5 ) can be obtained from the S3 Express One bucket's configuration page and the ⟨region⟩ is the AWS region (e.g., us-east-1 ). For example, to allow DuckDB to use an S3 Expr ... ess One bucket, configure the Secrets manager as follows: CREATE SECRET ( TYPE s3, KEY_ID '⟨AKIAIOSFODNN7EXAMPLE⟩', SECRET '⟨wJalrXUtnFEM ...
https://man.mtool.work/duckdb/2.0/guides/network_cloud_storage/s3_express_one.ht...
Lance Extension 8436
The lance extension adds support for reading and writing Lance tables. Lance is a modern lakehouse format optimized for ML/AI workloads, with native cloud storage support. Installing and Loading You can install the lance extension from Duck ... age reference Query a Lance Dataset Local file: SELECT * FROM '⟨path/to/dataset.lance⟩' LIMIT 10; S3: SELECT * FROM 's3://⟨bucket/path/to/out.lance⟩' LIMIT 10; To access object store URIs (e.g., s3://... ), configure a TYPE lance secret using the Secre ... ts Manager : CREATE SECRET ( TYPE lance, PROVIDER credential_chain, SCOPE 's3://bucket/' ); SELECT * FROM 's3://⟨bucket/path/to/out.lance⟩' LIMIT 10; Write a Lance Dataset Use the COPY ... TO ... statement to ... ance secret for that scope using the Secrets Manager : CREATE SECRET ( TYPE lance, PROVIDER credential_chain, SCOPE 's3://⟨bucket⟩/' ); COPY (SELECT 1 AS id) TO 's3://⟨bucket/path/to/out.lance⟩' (FORMAT lance, MODE 'overwrite'); Create a Lance Dataset ...
https://man.mtool.work/duckdb/2.0/core_extensions/lance.html
S3 Parquet Export 8260
To write a Parquet file to S3, the httpfs extension is required. This can be installed using the INSTALL SQL command. This only needs to be run once. INSTALL httpfs; To load the httpfs extension for usage, use the LOAD SQL command: LOAD htt ... the httpfs extension, set up the credentials to write data. Note that the region parameter should match the region of the bucket you want to access. CREATE SECRET ( TYPE s3, KEY_ID '⟨AKIAIOSFODNN7EXAMPLE⟩', SECRET '⟨wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMP ... s are correctly configured, Parquet files can be written to S3 using the following command: COPY ⟨table_name⟩ TO 's3://⟨s3-bucket⟩/⟨filename⟩.parquet'; Similarly, Google Cloud Storage (GCS) is supported through the Interoperability API. You need to cre ... 7MDENG/bPxRfiCYEXAMPLEKEY⟩' ); After setting up the GCS credentials, you can export using: COPY ⟨table_name⟩ TO 'gs://⟨gcs_bucket⟩/⟨filename⟩.parquet'; ...
https://man.mtool.work/duckdb/2.0/guides/network_cloud_storage/s3_export.html
Share a DuckDB Database That Only Stores Views 8036
A DuckDB database file does not have to contain any data: it can store only view definitions that point at remote data such as Parquet files on object storage. The resulting file is only a few hundred kilobytes, yet it behaves like a shared ... ng directory: ATTACH 'catalog.duckdb' AS catalog; USE catalog; CREATE VIEW services AS SELECT * FROM read_parquet('s3://my-bucket/rail/services/*.parquet'); CREATE VIEW stations AS SELECT * FROM read_parquet('s3://my-bucket/rail/stations.parquet'); Bec ... ing the Catalog Upload the catalog.duckdb file to any location that DuckDB can read over the network, for example an s3:// bucket or an https:// endpoint. Querying the Catalog Consumers attach the catalog read-only and query the views as if they were l ...
https://man.mtool.work/duckdb/2.0/guides/network_cloud_storage/duckdb_views_only...
PREV 1 2 3 4 NEXT
DuckDB 2.0 Documentation / man.mtool.work