Skip to content

Commit 7c337ea

Browse files
sfc-gh-stakedaankit-bhatnagar167
authored andcommitted
SNOW-99300: Fix compilation error for python connector extension on macosx
1 parent 8e3675a commit 7c337ea

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

cpp/ArrowIterator/CArrowTableIterator.cpp

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ void CArrowTableIterator::convertScaledFixedNumberColumnToDoubleColumn(
224224
std::string errorInfo = Logger::formatString(
225225
"[Snowflake Exception] arrow failed to append value: internal data type(%d)"
226226
", errorInfo: %s",
227-
dt->id(), ret.message());
227+
dt->id(), ret.message().c_str());
228228
logger.error(errorInfo.c_str());
229229
PyErr_SetString(PyExc_Exception, errorInfo.c_str());
230230
return;
@@ -240,7 +240,7 @@ void CArrowTableIterator::convertScaledFixedNumberColumnToDoubleColumn(
240240
std::string errorInfo = Logger::formatString(
241241
"[Snowflake Exception] arrow failed to replace column: internal data type(%d)"
242242
", errorInfo: %s",
243-
dt->id(), ret.message());
243+
dt->id(), ret.message().c_str());
244244
logger.error(errorInfo.c_str());
245245
PyErr_SetString(PyExc_Exception, errorInfo.c_str());
246246
return;
@@ -285,7 +285,7 @@ void CArrowTableIterator::convertTimeColumn(
285285
std::string errorInfo = Logger::formatString(
286286
"[Snowflake Exception] arrow failed to append value: internal data type(%d)"
287287
", errorInfo: %s",
288-
dt->id(), ret.message());
288+
dt->id(), ret.message().c_str());
289289
logger.error(errorInfo.c_str());
290290
PyErr_SetString(PyExc_Exception, errorInfo.c_str());
291291
return;
@@ -321,7 +321,7 @@ void CArrowTableIterator::convertTimeColumn(
321321
std::string errorInfo = Logger::formatString(
322322
"[Snowflake Exception] arrow failed to append value: internal data type(%d)"
323323
", errorInfo: %s",
324-
dt->id(), ret.message());
324+
dt->id(), ret.message().c_str());
325325
logger.error(errorInfo.c_str());
326326
PyErr_SetString(PyExc_Exception, errorInfo.c_str());
327327
return;
@@ -372,7 +372,7 @@ void CArrowTableIterator::convertTimeColumn(
372372
std::string errorInfo = Logger::formatString(
373373
"[Snowflake Exception] arrow failed to append value: internal data type(%d)"
374374
", errorInfo: %s",
375-
dt->id(), ret.message());
375+
dt->id(), ret.message().c_str());
376376
logger.error(errorInfo.c_str());
377377
PyErr_SetString(PyExc_Exception, errorInfo.c_str());
378378
return;
@@ -425,7 +425,7 @@ void CArrowTableIterator::convertTimeColumn(
425425
std::string errorInfo = Logger::formatString(
426426
"[Snowflake Exception] arrow failed to append value: internal data type(%d)"
427427
", errorInfo: %s",
428-
dt->id(), ret.message());
428+
dt->id(), ret.message().c_str());
429429
logger.error(errorInfo.c_str());
430430
PyErr_SetString(PyExc_Exception, errorInfo.c_str());
431431
return;
@@ -442,7 +442,7 @@ void CArrowTableIterator::convertTimeColumn(
442442
std::string errorInfo = Logger::formatString(
443443
"[Snowflake Exception] arrow failed to replace column: internal data type(%d)"
444444
", errorInfo: %s",
445-
dt->id(), ret.message());
445+
dt->id(), ret.message().c_str());
446446
logger.error(errorInfo.c_str());
447447
PyErr_SetString(PyExc_Exception, errorInfo.c_str());
448448
return;
@@ -496,7 +496,7 @@ void CArrowTableIterator::convertTimestampColumn(
496496
std::string errorInfo = Logger::formatString(
497497
"[Snowflake Exception] arrow failed to append value: internal data type(%d)"
498498
", errorInfo: %s",
499-
dt->id(), ret.message());
499+
dt->id(), ret.message().c_str());
500500
logger.error(errorInfo.c_str());
501501
PyErr_SetString(PyExc_Exception, errorInfo.c_str());
502502
return;
@@ -539,7 +539,7 @@ void CArrowTableIterator::convertTimestampColumn(
539539
std::string errorInfo = Logger::formatString(
540540
"[Snowflake Exception] arrow failed to append value: internal data type(%d)"
541541
", errorInfo: %s",
542-
dt->id(), ret.message());
542+
dt->id(), ret.message().c_str());
543543
logger.error(errorInfo.c_str());
544544
PyErr_SetString(PyExc_Exception, errorInfo.c_str());
545545
return;
@@ -594,7 +594,7 @@ void CArrowTableIterator::convertTimestampColumn(
594594
std::string errorInfo = Logger::formatString(
595595
"[Snowflake Exception] arrow failed to append value: internal data type(%d)"
596596
", errorInfo: %s",
597-
dt->id(), ret.message());
597+
dt->id(), ret.message().c_str());
598598
logger.error(errorInfo.c_str());
599599
PyErr_SetString(PyExc_Exception, errorInfo.c_str());
600600
return;
@@ -662,7 +662,7 @@ void CArrowTableIterator::convertTimestampColumn(
662662
std::string errorInfo = Logger::formatString(
663663
"[Snowflake Exception] arrow failed to append value: internal data type(%d)"
664664
", errorInfo: %s",
665-
dt->id(), ret.message());
665+
dt->id(), ret.message().c_str());
666666
logger.error(errorInfo.c_str());
667667
PyErr_SetString(PyExc_Exception, errorInfo.c_str());
668668
return;
@@ -679,7 +679,7 @@ void CArrowTableIterator::convertTimestampColumn(
679679
std::string errorInfo = Logger::formatString(
680680
"[Snowflake Exception] arrow failed to replace column: internal data type(%d)"
681681
", errorInfo: %s",
682-
dt->id(), ret.message());
682+
dt->id(), ret.message().c_str());
683683
logger.error(errorInfo.c_str());
684684
PyErr_SetString(PyExc_Exception, errorInfo.c_str());
685685
return;
@@ -809,7 +809,7 @@ void CArrowTableIterator::convertTimestampTZColumn(
809809
std::string errorInfo = Logger::formatString(
810810
"[Snowflake Exception] arrow failed to append value: internal data type(%d)"
811811
", errorInfo: %s",
812-
dt->id(), ret.message());
812+
dt->id(), ret.message().c_str());
813813
logger.error(errorInfo.c_str());
814814
PyErr_SetString(PyExc_Exception, errorInfo.c_str());
815815
return;
@@ -824,7 +824,7 @@ void CArrowTableIterator::convertTimestampTZColumn(
824824
std::string errorInfo = Logger::formatString(
825825
"[Snowflake Exception] arrow failed to replace column: internal data type(%d)"
826826
", errorInfo: %s",
827-
dt->id(), ret.message());
827+
dt->id(), ret.message().c_str());
828828
logger.error(errorInfo.c_str());
829829
PyErr_SetString(PyExc_Exception, errorInfo.c_str());
830830
return;

0 commit comments

Comments
 (0)