Skip to content

Commit

Permalink
Merge pull request #1970 from mabel-dev/#1967-1
Browse files Browse the repository at this point in the history
  • Loading branch information
joocer authored Aug 31, 2024
2 parents feeedfc + d862063 commit a206088
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
2 changes: 1 addition & 1 deletion opteryx/__version__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
__build__ = 759
__build__ = 760

# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,17 @@ def build_literal_node(value: Any, root: Node, suggested_type: OrsoTypes):
if hasattr(value, "as_py"):
value = value.as_py()

if value is None:
# Matching None has complications
root.value = None
root.node_type = NodeType.LITERAL
root.type = OrsoTypes.NULL
root.left = None
root.right = None
return root

# Define a mapping of types to OrsoTypes
type_mapping = {
None: OrsoTypes.NULL,
bool: OrsoTypes.BOOLEAN,
numpy.bool_: OrsoTypes.BOOLEAN,
str: OrsoTypes.VARCHAR,
Expand Down
2 changes: 1 addition & 1 deletion tests/sql_battery/test_results_battery.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ def test_results_tests(test):

start_suite = time.monotonic_ns()

width = shutil.get_terminal_size((80, 20))[0] - 40
width = shutil.get_terminal_size((80, 20))[0] - 42

passed = 0
failed = 0
Expand Down

0 comments on commit a206088

Please sign in to comment.