pentaho-labs / pentaho-cpython-plugin

This is a PDI plugin that allows execution of Python code.
Apache License 2.0
32 stars 19 forks source link

Fixed a column skewing issue (https://github.com/pentaho-labs/pentaho… #14

Closed m-a-hall closed 6 years ago

m-a-hall commented 6 years ago

…-cpython-plugin/issues/2). Also fixed an issue that affected transferring non-ascii string data into python. For some reason, bytes encoded to UTF-8 by Java cause a problem when decoded in python when they contain non-ascii characters. If non-ascii characters are detected the data is base64 encoded before transferring to python. Decoding base64 on the python side seems to rectify the problem (weird :-)). Also added the an option to specify a python executable to use (rather than assuming 'python' is in the PATH) - the user can now set either the pentaho.cpython.command Java property or PENTAHO_CPYTHON_COMMAND environment variable.