Skip to content

Commit 0ae85a4

Browse files
authored
chore(csharp): fix typo (#2933)
No change for production code. Some test code has been changed, but they are unlikely to affect the test. Closes #2932
1 parent 4430379 commit 0ae85a4

File tree

24 files changed

+39
-39
lines changed

24 files changed

+39
-39
lines changed

csharp/src/Apache.Arrow.Adbc/AdbcConnection11.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -353,7 +353,7 @@ public virtual Task RollbackAsync(CancellationToken cancellationToken = default)
353353
/// <summary>
354354
/// Gets the names of the statistics returned by this driver.
355355
/// </summary>
356-
/// <returns>The names of the statistcs.</returns>
356+
/// <returns>The names of the statistics.</returns>
357357
public virtual IArrowArrayStream GetStatisticsNames()
358358
{
359359
throw AdbcException.NotImplemented("Connection does not support statistics");

csharp/src/Apache.Arrow.Adbc/C/CAdbcConnection.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ public unsafe struct CAdbcConnection
3434
{
3535
/// <summary>
3636
/// Opaque implementation-defined state.
37-
/// This field is NULLPTR iff the connection is unintialized/freed.
37+
/// This field is NULLPTR iff the connection is uninitialized/freed.
3838
/// </summary>
3939
public void* private_data;
4040

csharp/src/Apache.Arrow.Adbc/C/CAdbcDatabase.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ public unsafe struct CAdbcDatabase
3636
{
3737
/// <summary>
3838
/// Opaque implementation-defined state.
39-
/// This field is NULLPTR iff the connection is unintialized/freed.
39+
/// This field is NULLPTR iff the connection is uninitialized/freed.
4040
/// </summary>
4141
public void* private_data;
4242

csharp/src/Apache.Arrow.Adbc/C/CAdbcDriver.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,14 +37,14 @@ public unsafe struct CAdbcDriver
3737

3838
/// <summary>
3939
/// Opaque driver-defined state.
40-
/// This field is NULL if the driver is unintialized/freed (but
40+
/// This field is NULL if the driver is uninitialized/freed (but
4141
/// it need not have a value even if the driver is initialized).
4242
/// </summary>
4343
public void* private_data;
4444

4545
/// <summary>
4646
/// Opaque driver manager-defined state.
47-
/// This field is NULL if the driver is unintialized/freed (but
47+
/// This field is NULL if the driver is uninitialized/freed (but
4848
/// it need not have a value even if the driver is initialized).
4949
/// </summary>
5050
public void* private_manager;

csharp/src/Apache.Arrow.Adbc/C/CAdbcPartitions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ public unsafe struct CAdbcPartitions
6060

6161
/// <summary>
6262
/// Opaque implementation-defined state.
63-
/// This field is NULLPTR iff the connection is unintialized/freed.
63+
/// This field is NULLPTR iff the connection is uninitialized/freed.
6464
/// </summary>
6565
public void* private_data;
6666

csharp/src/Apache.Arrow.Adbc/C/CAdbcStatement.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ public unsafe struct CAdbcStatement
4444
{
4545
/// <summary>
4646
/// Opaque implementation-defined state.
47-
/// This field is NULLPTR iff the connection is unintialized/freed.
47+
/// This field is NULLPTR iff the connection is uninitialized/freed.
4848
/// </summary>
4949
public void* private_data;
5050

csharp/src/Client/AdbcConnection.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ public sealed class AdbcConnection : DbConnection
4242
private AdbcTransaction? currentTransaction;
4343

4444
/// <summary>
45-
/// Overloaded. Intializes an <see cref="AdbcConnection"/>.
45+
/// Overloaded. Initializes an <see cref="AdbcConnection"/>.
4646
/// </summary>
4747
public AdbcConnection()
4848
{
@@ -53,7 +53,7 @@ public AdbcConnection()
5353
}
5454

5555
/// <summary>
56-
/// Overloaded. Intializes an <see cref="AdbcConnection"/>.
56+
/// Overloaded. Initializes an <see cref="AdbcConnection"/>.
5757
/// <param name="connectionString">The connection string to use.</param>
5858
/// </summary>
5959
public AdbcConnection(string connectionString) : this()

csharp/src/Drivers/Apache/Hive2/DecimalUtility.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ private static void ProcessDecimal(ReadOnlySpan<byte> value, int precision, int
169169
// Reset the integer and fractional span
170170
fractionalSpan = tempSignificant.Slice(int_length, frac_length);
171171
integerSpan = tempSignificant.Slice(0, int_length);
172-
// Trim leading zeros fron new integer span
172+
// Trim leading zeros from new integer span
173173
while (integerSpan.Length > 0 && integerSpan[0] == AsciiZero)
174174
{
175175
integerSpan = integerSpan.Slice(1);

csharp/src/Drivers/Apache/Hive2/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ Timeouts have a hierarchy to their behavior. As specified above, the `adbc.hive.
6767

6868
The `adbc.apache.statement.query_timeout_s` is analogous to a CommandTimeout for any subsequent calls to the server for requests, including metadata calls and executing queries.
6969

70-
The `adbc.apache.statement.polltime_ms` specifies the time between polls to the service, up to the limit specifed by `adbc.apache.statement.query_timeout_s`.
70+
The `adbc.apache.statement.polltime_ms` specifies the time between polls to the service, up to the limit specified by `adbc.apache.statement.query_timeout_s`.
7171

7272
## Hive Data Types
7373

csharp/src/Drivers/Apache/Hive2/SqlTypeNameParser.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ internal interface ISqlTypeNameParser
3232
/// <summary>
3333
/// Tries to parse the input string for a valid SQL type definition.
3434
/// </summary>
35-
/// <param name="input">The SQL type defintion string to parse.</param>
35+
/// <param name="input">The SQL type definition string to parse.</param>
3636
/// <param name="result">If successful, the result; otherwise <c>null</c>.</param>
3737
/// <returns>True if it can successfully parse the type definition input string; otherwise false.</returns>
3838
bool TryParse(string input, out SqlTypeNameParserResult? result);
@@ -137,7 +137,7 @@ result is T typedResult
137137
/// <summary>
138138
/// Tries to parse the input string for a valid SQL type definition.
139139
/// </summary>
140-
/// <param name="input">The SQL type defintion string to parse.</param>
140+
/// <param name="input">The SQL type definition string to parse.</param>
141141
/// <param name="result">If successful, the result; otherwise <c>null</c>.</param>
142142
/// <returns>True if it can successfully parse the type definition input string; otherwise false.</returns>
143143
bool ISqlTypeNameParser.TryParse(string input, out SqlTypeNameParserResult? result)
@@ -150,7 +150,7 @@ bool ISqlTypeNameParser.TryParse(string input, out SqlTypeNameParserResult? resu
150150
/// <summary>
151151
/// Tries to parse the input string for a valid SQL type definition.
152152
/// </summary>
153-
/// <param name="input">The SQL type defintion string to parse.</param>
153+
/// <param name="input">The SQL type definition string to parse.</param>
154154
/// <param name="result">If successful, the result; otherwise <c>null</c>.</param>
155155
/// <returns>True if it can successfully parse the type definition input string; otherwise false.</returns>
156156
internal bool TryParse(string input, out T? result)
@@ -487,7 +487,7 @@ internal class SqlStructTypeParser : SqlTypeNameParser<SqlTypeNameParserResult>
487487
// NOT NULL: When specified the struct guarantees that the value of this field is never NULL.
488488
// COMMENT str: An optional string literal describing the field.
489489
private static readonly Regex s_expression = new(
490-
@"^\s*(?<typeName>STRUCT)(?<structClause>\s*\<(.+)\>)\s*$", // STUCT
490+
@"^\s*(?<typeName>STRUCT)(?<structClause>\s*\<(.+)\>)\s*$", // STRUCT
491491
RegexOptions.IgnoreCase | RegexOptions.Compiled | RegexOptions.CultureInvariant);
492492

493493
protected override Regex Expression => s_expression;

0 commit comments

Comments
 (0)