Comments (12)
What version of Unix odbc is installed?
from odbc2parquet.
Hello @chrisfw ,
so now I've found a bit of time to write a more elaborate answer. Thanks for opening the issue. To help our understanding let's translate the error message, which you kindly provided.
ODBC emitted an error calling 'SQLSetEnvAttr':
State: S1009, Native error: 0, Message: [unixODBC][Driver Manager]Invalid attribute value
This error was emitted calling SQLSetEnvAttr
which is only called in one place if executing odbc2parquet
: Then setting the ODBC API version number. At the beginning of its lifecycle any ODBC application declares which version of the ODBC standard it wants to use to communicate to the driver manager (unixODBC).
In that context the Invalid attribute value
is the version number. odbc2parquet
currently utilizes the version 3.80
of the ODBC standard. Note: This is the version of the ODBC standard not the version of the driver manager odbc2parquet
expects.
The error indicates, that your version of the driver manager does not even know that this version exists. Which leaves me to belive that it might be an outdated version of unixODBC
.
Checking the changelog of unixODBC the ODBC 3.80
is first mentioned for the version unixODBC 2.3.0
which has been released 2010. See: http://www.unixodbc.org/
In terms of this tool I find the error message you received less than ideal. Best to emit a better error in the upstream odbc-api
if setting the desired ODBC version fails. This however won't solve your problem. It would still fail, just with a nicer error. Yet an update of unixODBC packet might.
Please let me know if any of this has been helpful, and if the diagnose turned out to be correct or not.
Cheers, Markus
from odbc2parquet.
Just released odbc2parquet 0.6.28
which is going to emit a better error message in your situation. Still curious on what version of unixODBC you are running though.
Cheers, Markus
from odbc2parquet.
from odbc2parquet.
Hi Chris,
would you mind upgrading to a newer version, and tell me how it goes. FYI: In case your package manager does not provide the newest version, building unixODBC from source is pretty straight forward:
1. copy the unixODBC-2.3.9.tar.gz file somewhere you can create files and directories
2. gunzip unixODBC*.tar.gz
3. tar xvf unixODBC*.tar
4. `./configure`
5. `make`
6. `make install`
I am not sure, at what version unixODBC officially supports ODBC 3.80
, but the latest version does for sure. So updating it is something I find worth trying.
Cheers, Markus
from odbc2parquet.
from odbc2parquet.
from odbc2parquet.
Hi Chris,
looking forward to it. This might become relevant for me, too.
Cheers, Markus
from odbc2parquet.
from odbc2parquet.
Hi Chris,
Thanks for the feedback. Closing the issue.
Cheers, Markus
from odbc2parquet.
from odbc2parquet.
from odbc2parquet.
Related Issues (20)
- Option to not generate file if row count is 0 HOT 4
- setup types for particular column HOT 2
- Issue with MySQL JSON columns HOT 8
- Reserved Column Names not Supported HOT 1
- Feature Request - Support column encryption in the generated parquet file HOT 4
- JobName as .sql file in config file HOT 4
- Parquet format version support HOT 9
- Feature suggestion: connect to URL `postgresql://username:pass@host/database` HOT 1
- What permissions are needed? - State: 42501, Native error: 1, Message: ERROR: permission denied HOT 4
- StarRocks parquet file import of parquet file generated by odbc2parquet fails with encoding error HOT 11
- Memory allocation with column-length-limit HOT 11
- Build for alpine HOT 8
- file-size-threshold generates wrong size files HOT 1
- --no-empty-file option doesn't work properly when row-groups-per-file should devide result into few files HOT 6
- MSSQL nvarchar - missing column in output file HOT 2
- Feature request: Progress bar for full table copies HOT 6
- Data source must return valid UTF16 in wide character buffer: Utf16Error HOT 4
- Write statistics HOT 14
- Make zstd the default compression HOT 4
- Build release assets for Ubuntu ARM64 as well HOT 11
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from odbc2parquet.