Skip to content

Commit d74824d

Browse files
authored
Merge pull request #508 from basho/features/lrb/riak-ts-1.5-rts-1425
Riak TS 1.5 support
2 parents 144da4e + f3f63a7 commit d74824d

9 files changed

+132
-40
lines changed

.travis.yml

+1
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ addons:
1313
install:
1414
- pip install --upgrade pip setuptools flake8
1515
before_script:
16+
- jdk_switcher use oraclejdk8
1617
- sudo ./tools/travis-ci/riak-install -d "$RIAK_DOWNLOAD_URL"
1718
- sudo ./tools/setup-riak -s
1819
env:

riak/codecs/pbuf.py

+5-2
Original file line numberDiff line numberDiff line change
@@ -824,6 +824,8 @@ def decode_timeseries_col_type(self, col_type):
824824
return 'timestamp'
825825
elif col_type == TsColumnType.Value('BOOLEAN'):
826826
return 'boolean'
827+
elif col_type == TsColumnType.Value('BLOB'):
828+
return 'blob'
827829
else:
828830
msg = 'could not decode column type: {}'.format(col_type)
829831
raise RiakError(msg)
@@ -845,8 +847,9 @@ def decode_timeseries_row(self, tsrow, tscols=None,
845847
if tscols is not None:
846848
col = tscols[i]
847849
if cell.HasField('varchar_value'):
848-
if col and col.type != TsColumnType.Value('VARCHAR'):
849-
raise TypeError('expected VARCHAR column')
850+
if col and not (col.type == TsColumnType.Value('VARCHAR') or
851+
col.type == TsColumnType.Value('BLOB')):
852+
raise TypeError('expected VARCHAR or BLOB column')
850853
else:
851854
row.append(cell.varchar_value)
852855
elif cell.HasField('sint64_value'):

riak/pb/riak_dt_pb2.py

+85-24
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)