Skip to content

Commit

Permalink
Merge pull request #508 from basho/features/lrb/riak-ts-1.5-rts-1425
Browse files Browse the repository at this point in the history
Riak TS 1.5 support
  • Loading branch information
lukebakken authored Dec 9, 2016
2 parents 144da4e + f3f63a7 commit d74824d
Show file tree
Hide file tree
Showing 9 changed files with 132 additions and 40 deletions.
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ addons:
install:
- pip install --upgrade pip setuptools flake8
before_script:
- jdk_switcher use oraclejdk8
- sudo ./tools/travis-ci/riak-install -d "$RIAK_DOWNLOAD_URL"
- sudo ./tools/setup-riak -s
env:
Expand Down
7 changes: 5 additions & 2 deletions riak/codecs/pbuf.py
Original file line number Diff line number Diff line change
Expand Up @@ -824,6 +824,8 @@ def decode_timeseries_col_type(self, col_type):
return 'timestamp'
elif col_type == TsColumnType.Value('BOOLEAN'):
return 'boolean'
elif col_type == TsColumnType.Value('BLOB'):
return 'blob'
else:
msg = 'could not decode column type: {}'.format(col_type)
raise RiakError(msg)
Expand All @@ -845,8 +847,9 @@ def decode_timeseries_row(self, tsrow, tscols=None,
if tscols is not None:
col = tscols[i]
if cell.HasField('varchar_value'):
if col and col.type != TsColumnType.Value('VARCHAR'):
raise TypeError('expected VARCHAR column')
if col and not (col.type == TsColumnType.Value('VARCHAR') or
col.type == TsColumnType.Value('BLOB')):
raise TypeError('expected VARCHAR or BLOB column')
else:
row.append(cell.varchar_value)
elif cell.HasField('sint64_value'):
Expand Down
109 changes: 85 additions & 24 deletions riak/pb/riak_dt_pb2.py

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit d74824d

Please sign in to comment.