Giter Site home page Giter Site logo

Comments (5)

raffricc avatar raffricc commented on July 25, 2024

I can confirm that it works in python:

import duckdb
con = duckdb.connect()
results = con.execute("SELECT * FROM '/tmp/writer_test368959290/test.parquet'").fetchall()
print(results)

output:
[(5577006791947779410, b'VlBzgbaiCM', 0.8136399609900968, False), (8763219523051806976, b'CpCILpgRwz', 0.8344520379886149, True), (2727609509146539891, b'peRpmICkHP', 0.28159210753652814, False), (3808190704329644902, b'HUkjEoSJKl', 0.20036864355101555, True)]

from go-duckdb.

marcboeker avatar marcboeker commented on July 25, 2024

@raffricc I've added a DUCKDB_TYPE_BLOB that should fix the problem. Please get the latest version and try again. You should see the output as bytes.

2022/06/22 23:39:04 /tmp/writer_test2898174709/test.parquet
2022/06/22 23:39:04 5577006791947779410, VlBzgbaiCM, 0.8136399609900968, true
2022/06/22 23:39:04 2669909356377979369, cWUPuTHNsG, 0.2585587212345129, true
2022/06/22 23:39:04 6828643170743844117, KrTldMuFkY, 0.9464975830653858, false
2022/06/22 23:39:04 8602951731698254683, baxkcGJBFz, 0.4186347320545146, true
2022/06/22 23:39:04 *********************************************
2022/06/22 23:39:04 5577006791947779410, [86 108 66 122 103 98 97 105 67 77], 0.8136399609900968, true

from go-duckdb.

raffricc avatar raffricc commented on July 25, 2024

@marcboeker Hi Marc, thank you very much for the quick fix. Really appreciated. I can confirm it works :)

from go-duckdb.

marcboeker avatar marcboeker commented on July 25, 2024

@raffricc Great to hear that it works now :) Thanks for the bug report.

from go-duckdb.

raffricc avatar raffricc commented on July 25, 2024

@marcboeker Morning Marc, I just did some more testing and found a new bug (see #27). Also you might be able to close: #23 by suggesting updating to duckdb 0.4.0

from go-duckdb.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.