impala-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Matthew Jacobs (Code Review)" <ger...@cloudera.org>
Subject [hs2client-CR] Rough draft of Cython interface to libhs2client and start of DB API 2.0 compliance layer (for compatibility with other systems that expect the standard Python database driver interface).
Date Tue, 07 Jun 2016 22:19:46 GMT
Matthew Jacobs has submitted this change and it was merged.

Change subject: Rough draft of Cython interface to libhs2client and start of DB API 2.0 compliance
layer (for compatibility with other systems that expect the standard Python database driver
interface).
......................................................................


Rough draft of Cython interface to libhs2client and start of DB API 2.0
compliance layer (for compatibility with other systems that expect the standard
Python database driver interface).

Draft fetchall code path to a pandas-compatible NumPy representation

- Integers (with and without nulls)
- Floating point
- String (UTF-8 only for now)
- Boolean
- Timestamps (using pandas.to_datetime for ISO-8601 parsing)
- Decimal (to Python Decimal objects)

There is some refactoring of the C++ ColumnarRowSet to enable template-based
column access.

Change-Id: I8c26be5932548d096088aa62bde0fe03e85a9a1e
---
M .gitignore
M CMakeLists.txt
A python/.gitignore
A python/README.md
A python/hs2client/__init__.pxd
A python/hs2client/__init__.py
A python/hs2client/compat.py
A python/hs2client/converters.h
A python/hs2client/dbapi.py
A python/hs2client/error.py
A python/hs2client/ext.pyx
A python/hs2client/libhs2client.pxd
A python/hs2client/tests/__init__.py
A python/hs2client/tests/common.py
A python/hs2client/tests/test_impala.py
A python/setup.py
M src/hs2client/api.h
M src/hs2client/columnar-row-set.cc
M src/hs2client/columnar-row-set.h
M src/hs2client/service.h
M src/hs2client/session.h
M src/hs2client/types.h
M src/hs2client/util.h
23 files changed, 2,186 insertions(+), 73 deletions(-)

Approvals:
  Matthew Jacobs: Looks good to me, approved; Verified



-- 
To view, visit http://gerrit.cloudera.org:8080/3296
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: I8c26be5932548d096088aa62bde0fe03e85a9a1e
Gerrit-PatchSet: 3
Gerrit-Project: hs2client
Gerrit-Branch: master
Gerrit-Owner: Wes McKinney <wesm@apache.org>
Gerrit-Reviewer: Matthew Jacobs <mj@cloudera.com>
Gerrit-Reviewer: Wes McKinney <wesm@apache.org>

Mime
View raw message