src-d / gitbase

SQL interface to git repositories, written in Go. https://docs.sourced.tech/gitbase
Apache License 2.0
2.07k stars 123 forks source link

Missing function in Gitbase DB (MariaDB) #989

Open ml-netent opened 4 years ago

ml-netent commented 4 years ago

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 commented 4 years ago

Hello,

I have the same thing.

Regards

fbagnol commented 4 years ago

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 commented 3 years ago

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 commented 3 years ago

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

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