Git Product home page Git Product logo

Comments (5)

CrafterKolyan avatar CrafterKolyan commented on August 27, 2024

You need to add extra functionality in process_sql.py
Look for AGG_OPS global variable and its' usages. Functions can be implemented the same way, but you'll also need to support comma symbol.

from spider.

alan-ai-learner avatar alan-ai-learner commented on August 27, 2024

You need to add extra functionality in process_sql.py
Look for AGG_OPS global variable and its' usages. Functions can be implemented the same way, but you'll also need to support comma symbol.

Thankyou so much for replying
one more question, like the AGG_OPS, have some limited functions, but the MySQL or other databases has lots of functions, so should i have to put all of them in a predefined variable?
And also the comma you are talking ablut, can you elaborate more, like whats the role of it?

from spider.

CrafterKolyan avatar CrafterKolyan commented on August 27, 2024

Yes, you should put all the functions in predefined variable. I think you can start with simply extending AGG_OPS with your function (e.g. date_format) but I don't guarantee you that everything would work as expected as this function has two parameters.

Talking about comma: I think that it may be interpreted incorrectly by the whole parser as currently comma is used only in Select query to separate columns and not to separate parameters of functions (this may mean that there's some code like: split select part by comma and parse each part with easier parser, which would lead to incorrect results because it would simply split date_format call into two separate strings and will try to analyze each of them independently and fail.

from spider.

alan-ai-learner avatar alan-ai-learner commented on August 27, 2024

Oh, thanks, alot for your suggestion, it seems like a lot of work. I have to be very precise on writing the code, specifically for handling the function parameters.
I'll try to make it worked.

from spider.

alan-ai-learner avatar alan-ai-learner commented on August 27, 2024

Hi @CrafterKolyan i tried to write the code that support functions, but i was facing the many difficulties, like to differentiate between the blocks DATE_FORMAT(date_complaint_raised,'%Y-%m') and Count(*), parser getting confused , like which is what. Can you please help in it?

from spider.

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.