Skip to content

Commit ad6615f

Browse files
author
anouri
committed
pypi.streamsx.hdfs updated version 1.3.0
1 parent 82d049a commit ad6615f

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

package/docs/source/conf.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,9 +65,9 @@
6565
# built documents.
6666
#
6767
# The short X.Y version.
68-
version = '1.2'
68+
version = '1.3'
6969
# The full version, including alpha/beta/rc tags.
70-
release = '1.2.0'
70+
release = '1.3.0'
7171

7272
# The language for content autogenerated by Sphinx. Refer to documentation
7373
# for a list of supported languages.

package/streamsx/hdfs/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@
6565
6666
"""
6767

68-
__version__='1.2.0'
68+
__version__='1.3.0'
6969

7070
__all__ = ['download_toolkit', 'configure_connection', 'scan', 'read', 'write']
7171
from streamsx.hdfs._hdfs import download_toolkit, configure_connection, scan, read, write, copy

package/streamsx/hdfs/_hdfs.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ def read(stream, credentials, schema=CommonSchema.String, name=None):
259259
return _op.outputs[0]
260260

261261

262-
def write(stream, credentials, file, schema=None, time_per_file=None, tuples_per_file=None, bytes_per_file=None, name=None):
262+
def write(stream, credentials, file=None, fileAttributeName=None, schema=None, time_per_file=None, tuples_per_file=None, bytes_per_file=None, name=None):
263263
"""Writes files to a Hadoop Distributed File System.
264264
265265
When writing to a file, that exists already on HDFS with the same name, then this file is overwritten.
@@ -296,7 +296,7 @@ def write(stream, credentials, file, schema=None, time_per_file=None, tuples_per
296296
if (time_per_file is not None and tuples_per_file is not None) or (tuples_per_file is not None and bytes_per_file is not None) or (time_per_file is not None and bytes_per_file is not None):
297297
raise ValueError("The parameters are mutually exclusive: bytes_per_file, time_per_file, tuples_per_file")
298298

299-
_op = _HDFS2FileSink(stream, file=file, schema=FileInfoSchema, name=name)
299+
_op = _HDFS2FileSink(stream, file=file, fileAttributeName=fileAttributeName, schema=FileInfoSchema, name=name)
300300

301301
if isinstance(credentials, dict):
302302
hdfs_uri, user, password = _read_ae_service_credentials(credentials)

0 commit comments

Comments
 (0)