Simple example arrow script fails on ubuntu:latest docker container
- Dominant language
- C++
- Stars
- 17.1k
- Forks
- 4.3k
- Avg merge
- 3d 18h
- Merged PRs (30d)
- 91
Description
This docker file using ubuntu:latest, which at this time equates to ubuntu:jammy:
```java
from ubuntu:latest
run apt update -y
run apt upgrade -y
run apt install -y vim libssl-dev libpq-dev python3 python3-venv build-essential
run cd /opt && mkdir python_environments && cd python_environments && python3 -m venv venv && . venv/bin/activate && python -m pip install --upgrade pip && pip install pyarrow pandas
run cd /opt/python_environments && . venv/bin/activate && python -c "import pandas as pd; import pyarrow as pa; from pyarrow import orc; orc.write_table(pa.table({'col1': [1,2,3]}), 'test.orc'); pdtbl = orc.read_table('test.orc')"
```
Fails on the orc.read_table command with this error:
```java
#9 0.939 terminate called after throwing an instance of 'orc::TimezoneError'
#9 0.939 what(): Can't open /etc/localtime
#9 0.944 Aborted
```
The error report is accurate, there is no /etc/localtime file in the ubuntu:latest docker image
**Environment**: Active environment is described by Docker file, but I'm running docker on windows 10.
**Reporter**: [Larry Dawson](https://issues.apache.org/jira/browse/ARROW-16386)
**Note**: *This issue was originally created as [ARROW-16386](https://issues.apache.org/jira/browse/ARROW-16386). Please see the [migration documentation](https://github.com/apache/arrow/issues/14542) for further details.*
Contributor guide
Research direction
Start by running the provided Dockerfile reproduction with ubuntu:latest and the failing pyarrow orc.read_table command. Investigate how the ORC timezone lookup handles the missing /etc/localtime file; done means the example completes successfully in that container without the TimezoneError.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- docker, pandas, python, ubuntu
- Domain
- data
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100