Skip to content

Commit

Permalink
Merge pull request #3548 from szarnyasg/nits-20240905a
Browse files Browse the repository at this point in the history
nits
  • Loading branch information
szarnyasg committed Sep 5, 2024
2 parents 69d1e91 + 33eebfd commit 9b065b4
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 7 deletions.
1 change: 1 addition & 0 deletions docs/api/c/api.md
Original file line number Diff line number Diff line change
Expand Up @@ -977,6 +977,7 @@ printf("Data for row %d: %d\n", row, data[row]);
</code></pre></div></div>
#### Parameters
* `result`
The result object to fetch the column data from.
Expand Down
6 changes: 3 additions & 3 deletions docs/api/c/vector.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ The vector and data chunk interfaces are the most efficient way of interacting w

Vectors are arrays of a specific data type. The logical type of a vector can be obtained using `duckdb_vector_get_column_type`. The type id of the logical type can then be obtained using `duckdb_get_type_id`.

Vectors themselves do not have sizes. Instead, the parent data chunk has a size (that can be obtained through `duckdb_data_chunk_get_size`). All vectors that belong to a data chunk have the same size.
Vectors themselves do not have sizes. Instead, the parent data chunk has a size (that can be obtained through `duckdb_data_chunk_get_size`). All vectors that belong to a data chunk have the same size.

### Primitive Types

Expand Down Expand Up @@ -57,7 +57,7 @@ The `duckdb_vector_get_validity` returns a pointer to the validity mask. Note th

### Strings

String values are stored as a `duckdb_string_t`. This is a special struct that stores the string inline (if it is short, i.e. `<= 12 bytes`) or a pointer to the string data if it is longer than `12` bytes.
String values are stored as a `duckdb_string_t`. This is a special struct that stores the string inline (if it is short, i.e., `<= 12 bytes`) or a pointer to the string data if it is longer than `12` bytes.

```c
typedef struct {
Expand Down Expand Up @@ -114,7 +114,7 @@ In order to obtain the actual string value of the enum, the `duckdb_enum_diction

Structs are nested types that contain any number of child types. Think of them like a `struct` in C. The way to access struct data using vectors is to access the child vectors recursively using the `duckdb_struct_vector_get_child` method.

The struct vector itself does not have any data (i.e. you should not use `duckdb_vector_get_data` method on the struct). **However**, the struct vector itself **does** have a validity mask. The reason for this is that the child elements of a struct can be `NULL`, but the struct **itself** can also be `NULL`.
The struct vector itself does not have any data (i.e., you should not use `duckdb_vector_get_data` method on the struct). **However**, the struct vector itself **does** have a validity mask. The reason for this is that the child elements of a struct can be `NULL`, but the struct **itself** can also be `NULL`.

### Lists

Expand Down
4 changes: 2 additions & 2 deletions docs/dev/building/troubleshooting.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,14 +34,14 @@ warning: too many GOT entries for -fpic, please recompile with -fPIC
```

**Solution:**
Create or edit the `~/.R/Makevars` file. This example also contains the [flag to parallelize the build](#building-the-r-package-is-slow):
Create or edit the `~/.R/Makevars` file. This example also contains the [flag to parallelize the build](#r-package-the-build-only-uses-a-single-thread):

```ini
ALL_CXXFLAGS = $(PKG_CXXFLAGS) -fPIC $(SHLIB_CXXFLAGS) $(CXXFLAGS)
MAKEFLAGS = -j$(nproc)
```

When making this change, also consider [making the build parallel](#building-the-r-package-is-slow).
When making this change, also consider [making the build parallel](#r-package-the-build-only-uses-a-single-thread).

## Python Package: `No module named 'duckdb.duckdb'` Build Error

Expand Down
2 changes: 1 addition & 1 deletion docs/guides/glossary.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ This page contains a glossary of a few common terms used in DuckDB.

### In-Process Database Management System

The DBMS runs in the client application's process instead of running as a separate process, which is common in the traditional client–server setup. An alternative term is **embeddable** database management system. In general, the term _"embedded database management system"_ should be avoided, as it can be confused with DBMSs targeting _embedded systems_ (which run on e.g. microcontrollers).
The DBMS runs in the client application's process instead of running as a separate process, which is common in the traditional client–server setup. An alternative term is **embeddable** database management system. In general, the term _embedded database management system_ should be avoided, as it can be confused with DBMSs targeting _embedded systems_ (which run on e.g., microcontrollers).

### Replacement Scan

Expand Down
2 changes: 1 addition & 1 deletion docs/sql/dialect/postgresql_compatibility.md
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ DuckDB performs an enforced cast, therefore, it completes the query and returns

## Case Sensitivity for Quoted Identifiers

PostgreSQL is case-insensitive. The way PostgreSQL achieves case insensitivity is by lowercasing unquoted identifiers within SQL, whereas quoting preserves case, e.g. the following command creates a table named `mytable` but tries to query for `MyTaBLe` because quotes preserve the case.
PostgreSQL is case-insensitive. The way PostgreSQL achieves case insensitivity is by lowercasing unquoted identifiers within SQL, whereas quoting preserves case, e.g., the following command creates a table named `mytable` but tries to query for `MyTaBLe` because quotes preserve the case.

```sql
CREATE TABLE MyTaBLe(x INT);
Expand Down

0 comments on commit 9b065b4

Please sign in to comment.