⌘K ctrl+k
Search Shortcut cmd + k | ctrl + k
DuckDB 2.0 ドキュメント 全文検索
per page, with , order by , clip by
Results of 1 - 8 of about 8 for detecting (0.002 sec.)
CSV Import Tips 13212
Below is a collection of tips to help when attempting to import complex CSV files. In the examples, we use the flights.csv file. Override the Header Flag if the Header Is Not Correctly Detected If a file contains only string columns the hea ... a Table The COPY statement copies data directly into a table. The CSV reader uses the schema of the table instead of auto-detecting types from the file. This speeds up the auto-detection, and prevents mistakes from being made during auto-detection. COPY ... TO ... BY NAME clause : INSERT INTO tbl BY NAME SELECT * FROM read_csv('input.csv'); Sample Size If the CSV sniffer is not detecting the correct type, try increasing the sample size. The option sample_size = -1 forces the sniffer to read the entire file: ...
https://man.mtool.work/duckdb/2.0/data/csv/tips.html
CREATE TABLE Statement 10031
The CREATE TABLE statement creates a table in the catalog. Examples Create a table with two integer columns ( i and j ): CREATE TABLE t1 (i INTEGER, j INTEGER); Create a table with a primary key: CREATE TABLE t1 (id INTEGER PRIMARY KEY, j V ... EATE TABLE ... AS SELECT (CTAS): CREATE TABLE t1 AS SELECT 42 AS i, 84 AS j; Create a table from a CSV file (automatically detecting column names and types): CREATE TABLE t1 AS SELECT * FROM read_csv('path/file.csv'); We can use the FROM -first syntax to ... s set, data will be spilled to disk if memory becomes constrained. Create a temporary table from a CSV file (automatically detecting column names and types): CREATE TEMP TABLE t1 AS SELECT * FROM read_csv('path/file.csv'); Allow temporary tables to off-lo ...
https://man.mtool.work/duckdb/2.0/sql/statements/create_table.html
Graph Queries 9073
DuckDB supports graph queries via the DuckPGQ community extension , which implements the SQL/PGQ syntax from the SQL:2023 standard. Warning DuckPGQ is a community extension and is still under active development. It may not be available for ... in financial data. See the "Uncovering Financial Crime with DuckDB and Graph Queries" blog post for a detailed example of detecting money laundering patterns. Cleanup To remove a property graph: DROP PROPERTY GRAPH social_network; Further Reading DuckPGQ ...
https://man.mtool.work/duckdb/2.0/guides/sql_features/graph_queries.html
Excel Import 8748
DuckDB supports reading Excel .xlsx files. However, .xls files are not supported. Importing Excel Sheets Use the read_xlsx function in the FROM clause of a query: SELECT * FROM read_xlsx('test_excel.xlsx'); Alternatively, you can omit the r ... e first row (within the inferred or supplied range) are non-empty strings. To disable this behavior, set header to false . Detecting Types When not importing into an existing table, DuckDB will attempt to infer the types of the columns in the Excel sheet ...
https://man.mtool.work/duckdb/2.0/guides/file_formats/excel_import.html
Friendly SQL 8422
DuckDB offers several advanced SQL features and syntactic sugar to make SQL queries more concise. We refer to these colloquially as “friendly SQL”. Several of these features were first introduced by DuckDB, while some are inspired by other ... identifiers Underscores as digit separators in numeric literals Data Types MAP data type UNION data type Data Import Auto-detecting the headers and schema of CSV files Directly querying CSV files and Parquet files Replacement scans : You can load from fi ...
https://man.mtool.work/duckdb/2.0/sql/dialect/friendly_sql.html
CSV Auto Detection 8115
When using read_csv , the system tries to automatically infer how to read the CSV file using the CSV sniffer . This step is necessary because CSV files are not self-describing and come in many different dialects. The auto-detection works ro ... , and there is more than one column per row meaning the delimiter was actually found in the CSV file. Type Detection After detecting the dialect, the system will attempt to figure out the types of each of the columns. Note that this step is only performed ...
https://man.mtool.work/duckdb/2.0/data/csv/auto_detection.html
CSV Import 7790
Examples The following examples use the flights.csv file. Read a CSV file from disk, auto-infer options: SELECT * FROM 'flights.csv'; Use the read_csv function with custom options: SELECT * FROM read_csv('flights.csv', delim = '|', header = ... values BOOL true auto_detect Auto detect CSV parameters . BOOL true auto_type_candidates Types that the sniffer uses when detecting column types. The VARCHAR type is always included as a fallback option. See example . TYPE[] default types buffer_size Siz ...
https://man.mtool.work/duckdb/2.0/data/csv/overview.html
Relational API 6832
The Relational API builds a query one step at a time from Python. A relation, a DuckDBPyRelation , is a piece of SQL text: the methods of the Transformation and Functions sections return a new relation whose text extends the one they were c ... the types. Detected when omitted. * all_varchar : bool, keyword-only, default: None Read every column as VARCHAR , without detecting the types. * normalize_names : bool, keyword-only, default: None Normalize the column names; for example, My Col becomes m ...
https://man.mtool.work/duckdb/2.0/clients/python/relational_api.html
PREV 1 NEXT
DuckDB 2.0 Documentation / man.mtool.work