Skip to content

Commit

Permalink
Merge branch 'master' into test-coverage-changes
Browse files Browse the repository at this point in the history
  • Loading branch information
sfc-gh-jszczerbinski authored Jan 7, 2025
2 parents 9333bf1 + d3cef59 commit 05c3136
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/build-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ jobs:
if: github.ref_name == github.event.repository.default_branch && matrix.cloud_provider == 'AWS'
- uses: actions/setup-python@v5
with:
python-version: '3.7'
python-version: '3.13'
architecture: 'x64'
- name: Test
shell: bash
Expand Down Expand Up @@ -92,7 +92,7 @@ jobs:
if: github.ref_name == github.event.repository.default_branch && matrix.cloud_provider == 'AWS'
- uses: actions/setup-python@v5
with:
python-version: '3.7'
python-version: '3.13'
architecture: 'x64'
- name: Test
shell: cmd
Expand Down Expand Up @@ -138,7 +138,7 @@ jobs:
if: github.ref_name == github.event.repository.default_branch && matrix.cloud_provider == 'AWS'
- uses: actions/setup-python@v5
with:
python-version: '3.7'
python-version: '3.13'
architecture: 'x64'
- name: Test
shell: cmd
Expand Down Expand Up @@ -206,7 +206,7 @@ jobs:
run: ci/build_linux.sh
- uses: actions/setup-python@v5
with:
python-version: '3.7'
python-version: '3.13'
architecture: 'x64'
- name: Test on AWS
shell: bash
Expand Down
6 changes: 3 additions & 3 deletions cpp/lib/ArrowChunkIterator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -361,7 +361,7 @@ ArrowChunkIterator::getCellAsInt64(size_t colIdx, int64 * out_data, bool rawData
return status;
}

if ((floatData > SF_INT64_MAX) || (floatData < SF_INT64_MIN))
if (floatData > static_cast<float64>(SF_INT64_MAX) || floatData < static_cast<float64>(SF_INT64_MIN))
{
m_parent->setError(SF_STATUS_ERROR_OUT_OF_RANGE,
"Value out of range for int64.");
Expand Down Expand Up @@ -408,7 +408,7 @@ ArrowChunkIterator::getCellAsInt64(size_t colIdx, int64 * out_data, bool rawData
case arrow::Type::type::DOUBLE:
{
double dblData = m_columns[colIdx].arrowDouble->Value(m_currRowIndexInBatch);
if ((dblData > SF_INT64_MAX) || (dblData < SF_INT64_MIN))
if (dblData > static_cast<float64>(SF_INT64_MAX) || dblData < static_cast<float64>(SF_INT64_MIN))
{
m_parent->setError(SF_STATUS_ERROR_OUT_OF_RANGE,
"Value out of range for int64.");
Expand Down Expand Up @@ -542,7 +542,7 @@ ArrowChunkIterator::getCellAsUint64(size_t colIdx, uint64 * out_data)
case arrow::Type::type::DOUBLE:
{
double dblData = m_columns[colIdx].arrowDouble->Value(m_currRowIndexInBatch);
if ((dblData > SF_UINT64_MAX) || (dblData < SF_INT64_MIN))
if (dblData > static_cast<double>(SF_UINT64_MAX) || dblData < static_cast<double>(SF_INT64_MIN))
{
m_parent->setError(SF_STATUS_ERROR_OUT_OF_RANGE,
"Value out of range for uint64.");
Expand Down

0 comments on commit 05c3136

Please sign in to comment.