-
-
Notifications
You must be signed in to change notification settings - Fork 71
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
- Loading branch information
1 parent
b7104b6
commit 2547ba9
Showing
8 changed files
with
108 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
38 changes: 38 additions & 0 deletions
38
ClickHouse.Client/Copy/ClickHouseBulkCopySerializationException.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Data; | ||
using System.IO; | ||
using System.IO.Compression; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading; | ||
using System.Threading.Tasks; | ||
using ClickHouse.Client.ADO; | ||
using ClickHouse.Client.ADO.Readers; | ||
using ClickHouse.Client.Formats; | ||
using ClickHouse.Client.Properties; | ||
using ClickHouse.Client.Types; | ||
using ClickHouse.Client.Utility; | ||
|
||
namespace ClickHouse.Client.Copy | ||
{ | ||
public class ClickHouseBulkCopySerializationException : Exception | ||
{ | ||
public ClickHouseBulkCopySerializationException(object[] row, int index, Exception innerException) | ||
: base("Error when serializing data", innerException) | ||
{ | ||
Row = row; | ||
Index = index; | ||
} | ||
|
||
/// <summary> | ||
/// Gets row at which exception happened | ||
/// </summary> | ||
public object[] Row { get; } | ||
|
||
/// <summary> | ||
/// Gets index of bad value in row | ||
/// </summary> | ||
public int Index { get; } | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,6 @@ | |
|
||
namespace ClickHouse.Client.Types | ||
{ | ||
|
||
internal class PolygonType : ArrayType | ||
{ | ||
public PolygonType() | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,6 @@ | |
|
||
namespace ClickHouse.Client.Types | ||
{ | ||
|
||
internal class RingType : ArrayType | ||
{ | ||
public RingType() | ||
|