File tree Expand file tree Collapse file tree 2 files changed +3
-5
lines changed Expand file tree Collapse file tree 2 files changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -9,8 +9,6 @@ namespace DuckDB.NET.Data;
9
9
10
10
public class DuckDBAppender : IDisposable
11
11
{
12
- private static readonly ulong DuckDBVectorSize = DuckDBGlobalData . VectorSize ;
13
-
14
12
private bool closed ;
15
13
private readonly Native . DuckDBAppender nativeAppender ;
16
14
private readonly string qualifiedTableName ;
@@ -48,7 +46,7 @@ public DuckDBAppenderRow CreateRow()
48
46
throw new InvalidOperationException ( "Appender is already closed" ) ;
49
47
}
50
48
51
- if ( rowCount % DuckDBVectorSize == 0 )
49
+ if ( rowCount % DuckDBGlobalData . VectorSize == 0 )
52
50
{
53
51
AppendDataChunk ( ) ;
54
52
@@ -104,7 +102,7 @@ private void InitVectorWriters()
104
102
105
103
if ( vectorWriters [ index ] == null )
106
104
{
107
- vectorWriters [ index ] = VectorDataWriterFactory . CreateWriter ( vector , logicalTypes [ index ] ) ;
105
+ vectorWriters [ index ] = VectorDataWriterFactory . CreateWriter ( vector , logicalTypes [ index ] ) ;
108
106
}
109
107
else
110
108
{
Original file line number Diff line number Diff line change 2
2
3
3
namespace DuckDB . NET . Data . Internal ;
4
4
5
- public static class DuckDBGlobalData
5
+ internal static class DuckDBGlobalData
6
6
{
7
7
public static ulong VectorSize { get ; } = NativeMethods . Helpers . DuckDBVectorSize ( ) ;
8
8
}
You can’t perform that action at this time.
0 commit comments