Skip to content

Commit 7fd8e64

Browse files
committed
...
1 parent ac21167 commit 7fd8e64

File tree

5 files changed

+17
-23
lines changed

5 files changed

+17
-23
lines changed

.github/workflows/windows.yml

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -35,19 +35,19 @@ jobs:
3535
gnu-flags: "-m64",
3636
msvc-dev-cmd: "win64"
3737
}
38-
#- {
39-
# name: "Win32",
40-
# vs-flags: "-A Win32", # only used by VS generator
41-
# cl-flags: "/arch (x86)",
42-
# gnu-flags: "-m32",
43-
# msvc-dev-cmd: "win32"
44-
#}
38+
- {
39+
name: "Win32",
40+
vs-flags: "-A Win32", # only used by VS generator
41+
cl-flags: "/arch (x86)",
42+
gnu-flags: "-m32",
43+
msvc-dev-cmd: "win32"
44+
}
4545
config:
4646
- {name: Debug}
47-
#- {name: Release}
47+
- {name: Release}
4848
build-system:
4949
- {name: "Visual Studio 17 2022"}
50-
#- {name: "Ninja"}
50+
- {name: "Ninja"}
5151

5252
steps:
5353
- name: Setup MSVC (only for non-VS buildsystems)
@@ -192,8 +192,7 @@ jobs:
192192

193193
- name: Run tests
194194
working-directory: build
195-
#run: cmake --build . --config ${{matrix.config.name}} --target run_tests_with_junit_report
196-
run: ./bin/Debug/test_sparrow_lib.exe
195+
run: cmake --build . --config ${{matrix.config.name}} --target run_tests_with_junit_report
197196

198197
- name: Run c_data_integration tests
199198
if: matrix.target-arch.name != 'Win32'

include/sparrow/layout/map_layout/map_array.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ namespace sparrow
6262

6363
using inner_value_type = inner_types::inner_value_type;
6464
using inner_reference = inner_types::inner_reference;
65-
using inner_const_referencce = inner_types::inner_const_reference;
65+
using inner_const_reference = inner_types::inner_const_reference;
6666

6767
using value_type = nullable<inner_value_type>;
6868
using const_reference = nullable<inner_const_reference, bitmap_const_reference>;

src/layout/map_layout/map_array.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
//
99
// Unless required by applicable law or agreed to in writing, software
1010
// distributed under the License is distributed on an "AS IS" BASIS,
11-
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or mplied.
11+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1212
// See the License for the specific language governing permissions and
1313
// limitations under the License.
1414

@@ -54,7 +54,7 @@ namespace sparrow
5454

5555
array_wrapper* map_array::raw_keys_array()
5656
{
57-
return p_items_array.get();
57+
return p_keys_array.get();
5858
}
5959

6060
const array_wrapper* map_array::raw_items_array() const

src/layout/map_layout/map_value.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
//
99
// Unless required by applicable law or agreed to in writing, software
1010
// distributed under the License is distributed on an "AS IS" BASIS,
11-
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or mplied.
11+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1212
// See the License for the specific language governing permissions and
1313
// limitations under the License.
1414

@@ -62,7 +62,7 @@ namespace sparrow
6262

6363
auto map_value::cbegin() const -> const_iterator
6464
{
65-
return const_iterator(functor_type(this), size());
65+
return const_iterator(functor_type(this), 0);
6666
}
6767

6868
auto map_value::end() const -> const_iterator
@@ -107,7 +107,7 @@ namespace sparrow
107107

108108
auto map_value::value(size_type i) const -> const_reference
109109
{
110-
return std::make_pair(array_element(*p_flat_keys, i), array_element(*p_flat_items, i));
110+
return std::make_pair(array_element(*p_flat_keys, i + m_index_begin), array_element(*p_flat_items, i + m_index_begin));
111111
}
112112

113113
bool operator==(const map_value& lhs, const map_value& rhs)

test/test_map_array.cpp

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,6 @@ namespace sparrow
5050
// check the size
5151
REQUIRE_EQ(map_arr.size(), sizes.size());
5252

53-
std::cout << "BEFORE CHECKING SIZES" << std::endl;
5453
// check the sizes
5554
for (std::size_t i = 0; i < sizes.size(); ++i)
5655
{
@@ -62,15 +61,13 @@ namespace sparrow
6261
}
6362

6463
// Check the values
65-
std::cout << "BEFORE CHECKING VALUES" << std::endl;
6664
std::size_t flat_index = 0;
6765
for (std::size_t i = 0; i < sizes.size(); ++i)
6866
{
6967
if (where_nulls.contains(i))
7068
{
7169
continue;
7270
}
73-
std::cout << "Checking for index " << i << std::endl;
7471
auto m = map_arr[i];
7572
for (const auto& v: m.value())
7673
{
@@ -82,7 +79,6 @@ namespace sparrow
8279
++flat_index;
8380
}
8481
}
85-
std::cout << "ARRAY CHECKED"<< std::endl;
8682
}
8783

8884
map_array make_map_array()
@@ -104,9 +100,7 @@ namespace sparrow
104100
{
105101
SUBCASE("... validity bitmap")
106102
{
107-
std::cout << "BEFORE CONSTRUCTION" << std::endl;
108103
map_array arr(std::move(mau.flat_keys), std::move(mau.flat_items), std::move(mau.offsets), test::where_nulls);
109-
std::cout << "BEFORE CHECK" << std::endl;
110104
test::check_array(arr);
111105
}
112106

@@ -169,3 +163,4 @@ namespace sparrow
169163
}
170164
}
171165
}
166+

0 commit comments

Comments
 (0)