Skip to content

Commit 1263eab

Browse files
Address reviewer comments
1 parent 719fd84 commit 1263eab

File tree

3 files changed

+11
-12
lines changed

3 files changed

+11
-12
lines changed

doc/api.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ Externals
6060

6161

6262
HeavyDB Backend
63-
=================
63+
===============
6464

6565
The table below contains the data structures available for the HeavyDB backend.
6666
It should be noticed that the following types are not regular Python types but

rbc/heavyai/text_encoding_none.py

+10-10
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
'''Omnisci TextEncodingNone type that corresponds to Omnisci type TEXT ENCODED NONE.
1+
'''HeavyDB TextEncodingNone type that corresponds to HeavyDB type TEXT ENCODED NONE.
22
'''
33

44
__all__ = ['TextEncodingNonePointer', 'TextEncodingNone', 'HeavyDBTextEncodingNoneType']
@@ -8,15 +8,15 @@
88
from rbc.targetinfo import TargetInfo
99
from rbc.errors import RequireLiteralValue
1010
from .buffer import (
11-
BufferPointer, Buffer, OmnisciBufferType,
12-
omnisci_buffer_constructor)
11+
BufferPointer, Buffer, HeavyDBBufferType,
12+
heavydb_buffer_constructor)
1313
from numba.core import types, extending, cgutils
1414
from llvmlite import ir
1515
from typing import Union
1616

1717

18-
class HeavyDBTextEncodingNoneType(OmnisciBufferType):
19-
"""Omnisci TextEncodingNone type for RBC typesystem.
18+
class HeavyDBTextEncodingNoneType(HeavyDBBufferType):
19+
"""HeavyDB TextEncodingNone type for RBC typesystem.
2020
"""
2121

2222
@property
@@ -118,20 +118,20 @@ def impl(a, b):
118118

119119

120120
@extending.lower_builtin(TextEncodingNone, types.Integer)
121-
def omnisci_text_encoding_none_constructor(context, builder, sig, args):
122-
return omnisci_buffer_constructor(context, builder, sig, args)
121+
def heavydb_text_encoding_none_constructor(context, builder, sig, args):
122+
return heavydb_buffer_constructor(context, builder, sig, args)
123123

124124

125125
@extending.lower_builtin(TextEncodingNone, types.StringLiteral)
126-
def omnisci_text_encoding_none_constructor_literal(context, builder, sig, args):
126+
def heavydb_text_encoding_none_constructor_literal(context, builder, sig, args):
127127
int64_t = ir.IntType(64)
128128
int8_t_ptr = ir.IntType(8).as_pointer()
129129

130130
literal_value = sig.args[0].literal_value
131131
sz = int64_t(len(literal_value))
132132

133133
# arr = {ptr, size, is_null}*
134-
arr = omnisci_buffer_constructor(context, builder, sig.return_type(types.int64), [sz])
134+
arr = heavydb_buffer_constructor(context, builder, sig.return_type(types.int64), [sz])
135135
ptr = builder.extract_value(builder.load(arr), [0])
136136

137137
msg_bytes = literal_value.encode('utf-8')
@@ -144,7 +144,7 @@ def omnisci_text_encoding_none_constructor_literal(context, builder, sig, args):
144144

145145

146146
@extending.type_callable(TextEncodingNone)
147-
def type_omnisci_text_encoding_none(context):
147+
def type_heavydb_text_encoding_none(context):
148148
def typer(arg):
149149
if isinstance(arg, types.UnicodeType):
150150
raise RequireLiteralValue()

rbc/tests/heavyai/test_text_encoding.py

-1
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,6 @@ def test_text_encoding_column_list2(heavydb, size):
227227
@pytest.mark.usefixtures("create_columns")
228228
@pytest.mark.parametrize("size", (32,))
229229
@pytest.mark.parametrize("num_cols", (1, 2, 3, 4))
230-
@pytest.mark.skip()
231230
def test_text_encoding_column_list3(heavydb, size, num_cols):
232231
heavydb.require_version((5, 7), "Requires heavydb-internal PR 5719")
233232

0 commit comments

Comments
 (0)