AlenkaF commented on PR #14717:
URL: https://github.com/apache/arrow/pull/14717#issuecomment-1329085602
Oh, the AppVeyor failure is connected:
<details>
```python
______________ test_parquet_file_pass_directory_instead_of_file
_______________
tempdir =
WindowsPath('C:/Users/appveyor/AppData/Local/Temp/1/pytest-of-appveyor/pytest-0/test_parquet_file_pass_directo0')
def test_parquet_file_pass_directory_instead_of_file(tempdir):
# ARROW-7208
path = tempdir / 'directory'
os.mkdir(str(path))
msg = f"Cannot open for reading: path '{str(path)}' is a directory"
with pytest.raises(IOError, match=msg):
> pq.ParquetFile(path)
pyarrow\tests\parquet\test_parquet_file.py:182:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
_ _
self = <pyarrow.parquet.core.ParquetFile object at 0x000002C72E210230>
source =
'C:/Users/appveyor/AppData/Local/Temp/1/pytest-of-appveyor/pytest-0/test_parquet_file_pass_directo0/directory'
def __init__(self, source, *, metadata=None, common_metadata=None,
read_dictionary=None, memory_map=False, buffer_size=0,
pre_buffer=False, coerce_int96_timestamp_unit=None,
decryption_properties=None, thrift_string_size_limit=None,
thrift_container_size_limit=None, filesystem=None):
self._close_source = getattr(source, 'closed', True)
filesystem, source = _resolve_filesystem_and_path(source, filesystem)
if filesystem is not None:
> source = filesystem.open_input_file(source)
pyarrow\parquet\core.py:317:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
_ _
> in_handle = GetResultValue(self.fs.OpenInputFile(pathstr))
pyarrow\_fs.pyx:770:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
_ _
> return check_status(status)
pyarrow\error.pxi:144:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
_ _
> raise IOError(errno, message, None, winerror)
E PermissionError: [WinError 5] Failed to open local file
'C:/Users/appveyor/AppData/Local/Temp/1/pytest-of-appveyor/pytest-0/test_parquet_file_pass_directo0/directory'.
Detail: [Windows error 5] Access is denied.
pyarrow\error.pxi:111: PermissionError
During handling of the above exception, another exception occurred:
tempdir =
WindowsPath('C:/Users/appveyor/AppData/Local/Temp/1/pytest-of-appveyor/pytest-0/test_parquet_file_pass_directo0')
def test_parquet_file_pass_directory_instead_of_file(tempdir):
# ARROW-7208
path = tempdir / 'directory'
os.mkdir(str(path))
msg = f"Cannot open for reading: path '{str(path)}' is a directory"
> with pytest.raises(IOError, match=msg):
pyarrow\tests\parquet\test_parquet_file.py:181:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
_ _
C:\Miniconda38-x64\envs\arrow\lib\re.py:200: in search
return _compile(pattern, flags).search(string)
C:\Miniconda38-x64\envs\arrow\lib\re.py:303: in _compile
p = sre_compile.compile(pattern, flags)
C:\Miniconda38-x64\envs\arrow\lib\sre_compile.py:788: in compile
p = sre_parse.parse(p, flags)
C:\Miniconda38-x64\envs\arrow\lib\sre_parse.py:955: in parse
p = _parse_sub(source, state, flags & SRE_FLAG_VERBOSE, 0)
C:\Miniconda38-x64\envs\arrow\lib\sre_parse.py:444: in _parse_sub
itemsappend(_parse(source, state, verbose, nested + 1,
C:\Miniconda38-x64\envs\arrow\lib\sre_parse.py:526: in _parse
code = _escape(source, this, state)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
_ _
source = <sre_parse.Tokenizer object at 0x000002C72E213B60>, escape = '\\U'
state = <sre_parse.State object at 0x000002C72E213840>
def _escape(source, escape, state):
# handle escape code in expression
code = CATEGORIES.get(escape)
if code:
return code
code = ESCAPES.get(escape)
if code:
return code
try:
c = escape[1:2]
if c == "x":
# hexadecimal escape
escape += source.getwhile(2, HEXDIGITS)
if len(escape) != 4:
raise source.error("incomplete escape %s" % escape,
len(escape))
return LITERAL, int(escape[2:], 16)
elif c == "u" and source.istext:
# unicode escape (exactly four digits)
escape += source.getwhile(4, HEXDIGITS)
if len(escape) != 6:
raise source.error("incomplete escape %s" % escape,
len(escape))
return LITERAL, int(escape[2:], 16)
elif c == "U" and source.istext:
# unicode escape (exactly eight digits)
escape += source.getwhile(8, HEXDIGITS)
if len(escape) != 10:
> raise source.error("incomplete escape %s" % escape,
len(escape))
E re.error: incomplete escape \U at position 33
C:\Miniconda38-x64\envs\arrow\lib\sre_parse.py:382: error
```
</details>
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]