Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing function in Gitbase DB (MariaDB) #989

Open
ml-netent opened this issue Dec 18, 2019 · 4 comments
Open

Missing function in Gitbase DB (MariaDB) #989

ml-netent opened this issue Dec 18, 2019 · 4 comments

Comments

@ml-netent
Copy link

Hey,

when I try to run the following example in the db

SELECT repository_id, file_path,
       JSON_UNQUOTE(JSON_EXTRACT(bl, "$.linenum")),
       JSON_UNQUOTE(JSON_EXTRACT(bl, "$.author")),
       JSON_UNQUOTE(JSON_EXTRACT(bl, "$.text"))
FROM   (SELECT repository_id, file_path,
               EXPLODE(BLAME(repository_id, commit_hash, file_path)) AS bl
        FROM   ref_commits
               NATURAL JOIN blobs
               NATURAL JOIN commit_files
        WHERE  ref_name = 'HEAD'
               AND NOT IS_BINARY(blob_content)
        ) as p
WHERE  JSON_EXTRACT(bl, "$.text") LIKE '%// TODO%';

I get the following error

ERROR 1105 (HY000): unknown error: A function: 'blame' not found.

I'm new to source{d} and using the community edition. Could you guys point me in the right direction. For some reason SHOW FUNCTION STATUSis working either so I'm having problems debugging this.

@fbagnol
Copy link

fbagnol commented Jan 23, 2020

Hello,

I have the same thing.

Regards

@fbagnol
Copy link

fbagnol commented Jan 23, 2020

On my setup, with source{d} default install, version of gitbase is 0.23.1

There is no blame function in 0.23.1....

@js00070
Copy link

js00070 commented Nov 24, 2020

I have the same problem...
It seems that this project hasn't been updated for a long time... Is there anyone still maintaining this project?

@smola
Copy link
Contributor

smola commented Dec 1, 2020

Sourced Technologies was dissolved and gitbase is not maintained anymore. Some more background here: src-d/go-mysql-server#873

In short: this repository won't be updated anymore. The project is dead unless someone decides to fork it and maintain it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants