gitbase icon indicating copy to clipboard operation
gitbase copied to clipboard

Missing function in Gitbase DB (MariaDB)

Open ml-netent opened this issue 5 years ago • 4 comments

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.

ml-netent avatar Dec 18 '19 15:12 ml-netent

Hello,

I have the same thing.

Regards

fbagnol avatar Jan 23 '20 16:01 fbagnol

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

There is no blame function in 0.23.1....

fbagnol avatar Jan 23 '20 23:01 fbagnol

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?

js00070 avatar Nov 24 '20 13:11 js00070

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.

smola avatar Dec 01 '20 16:12 smola