Code Monkey home page Code Monkey logo

datasources's People

Contributors

abhishekpcnair avatar ashutosh619-sudo avatar ath34-tech avatar devhpes avatar ea-rus avatar george3d6 avatar hamishfagg avatar ktyborowski avatar michaellantz avatar stpmax avatar zoranpandovski avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

datasources's Issues

Datasources __init__.py says to use mindsdb_native[extra_data_sources] although it has been deprecated.

I have noticed that the information printed when a datasource is not found is referencing mindsdb_native[extra_data_sources], even though it is deprecated in favour of mindsdb.

eg.

try:
from mindsdb_datasources.datasources.s3_ds import S3DS
except:
print("S3 Datasource is not available by default. If you wish to use it, please install mindsdb_native[extra_data_sources]")
S3DS = None

The docs here reference mindsdb .

Should this be changed? I can work on this if it needs a change.

Implement 'get_columns' and 'get_length' method for datasource

Initial issue is mindsdb/mindsdb#1326. When user upload big file as ds we need make some processing for this file: get columns list and row count. At this moment we do it by accessing to dataframe: https://github.com/mindsdb/mindsdb/blob/stable/mindsdb/interfaces/datastore/datastore.py#L301
When file is big this step can take a lot of time. Minutes. But we really do not need create dataframe, we need just read first line of file and get count of rows in it. This is actual and for sql-datasources too: instead of fetch all rows from table, we can do only 'select count(1) from table', and 'select * from table limit 1' to get columns names.

Underscore typo in init info

I have missed some underscores in the init info.

Reference:

try:
from mindsdb_datasources.datasources.phoenix_ds import PhoenixDS
except ImportError:
print("Phoenix Datasource is not available by default. If you wish to use it, please install mindsdb_datasources[extra_datasources]")
PhoenixDS = None
try:
from mindsdb_datasources.datasources.quest_ds import QuestDS
except ImportError:
print("QuestDB Datasource is not available by default. If you wish to use it, please install mindsdb_datasources[extra_datasources]")
QuestDS = None

I will open a PR that fixes this.

Change ClickHouse driver

At this moment if dataframe returned by query() is empty, then columns list will be empty too. Such behaviour is inappropriate for sql api, we need get columns list even if dataframe is empty. We need somehow get columns list, or change driver for CH.

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.