Skip to content

Commit

Permalink
SNOW-979340 added description how to enable Arrow
Browse files Browse the repository at this point in the history
  • Loading branch information
sfc-gh-dstempniak committed Nov 29, 2023
1 parent 62f2206 commit d0e469f
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -448,6 +448,29 @@ The .NET driver supports the following mappings from .NET to Snowflake data type
| `byte` | `BINARY` |
| `datetime` | `DATE` |

Arrow data format
-----------------

The .NET connector starting from v2.1.3 supports the Arrow data format for data transfers
between Snowflake and the .NET client. The Arrow data format avoids extra
conversions between binary and textual representations of the data. The Arrow
data format can improve performance and reduce memory consumption in clients.

The data format is controlled by the parameter
DOTNET_QUERY_RESULT_FORMAT. To use Arrow format, execute:

```snowflake
-- at the session level
ALTER SESSION SET DOTNET_QUERY_RESULT_FORMAT = ARROW;
-- or at the user level
ALTER USER SET DOTNET_QUERY_RESULT_FORMAT = ARROW;
-- or at the account level
ALTER ACCOUNT SET DOTNET_QUERY_RESULT_FORMAT = ARROW;
```
The valid values for the parameter are:

- ARROW
- JSON (default)

Run a Query and Read Data
-------------------------
Expand Down

0 comments on commit d0e469f

Please sign in to comment.