Giter Club home page Giter Club logo

Comments (6)

pacman82 avatar pacman82 commented on August 15, 2024 1

odbc2parquet 3.1.0 is released which emits a log message on info level stating the number of currently fetched rows.

from odbc2parquet.

pacman82 avatar pacman82 commented on August 15, 2024

Currently it is entirely possible to use odbc2parquet in situations there the first files has been written while even the data source is not sure how many rows the query will yield. odbc2parquet has no idea what the maximum numbers of row are. I am not confident that every data source would support count_big or that it would always be cheap to call.

Emitting the total number of rows fetched so far on the other hand is easy. I see nothing that would speak against that.

from odbc2parquet.

jonashaag avatar jonashaag commented on August 15, 2024

Yeah, the count thing would only make sense with a special "full table copy" mode, where you're not passing a query but a table name.

from odbc2parquet.

pacman82 avatar pacman82 commented on August 15, 2024

I have thought a bit about how to do a progress bar, but there is no good way to retrieve the total number of rows without making additional assumptions about the data source in question. The age old tradeoff between usefulness and re-usability.

However I could consider making the core functions of this CLI tool available as the library, allowing you to build a specialized CLI tool for your use-case on top. I would only extend the mental effort if this is something you would consider, though. Otherwise I am also fine with closing the issue and calling it a day.

Best, Markus

from odbc2parquet.

jonashaag avatar jonashaag commented on August 15, 2024

Ok! I don't think I would use that library given that I'm much more fluent in Python and there are various easy to use ways to fetch data from SQL Server and write to Parquet in Python.

from odbc2parquet.

pacman82 avatar pacman82 commented on August 15, 2024

Thanks for the feedback, closing the issue.

from odbc2parquet.

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.