gitbase

SQL interface to git repositories, written in Go. https://docs.sourced.tech/gitbase

APACHE-2.0 License

Stars
2.1K
Committers
31

Bot releases are hidden (Show)

gitbase - v0.24.0-rc3 Latest Release

Published by erizocosmico almost 5 years ago

Fixed

  • Only optimize sorted DISTINCT if the first column on the order by is on the distinct schema. (#976)
  • Avoid possible panics in LOC by using a safe cache accessor.
  • sql: Add length to VARCHAR and CHAR MySQLTypeName strings in SHOW CREATE TABLE output.

Added

  • Added BLAME function.
  • Better error messages for index failures.
  • Implemented subquery expressions.
  • Added support for 24-bit integers (MySQL's MEDIUMINT)

Changed

  • Use the minimum integer size as necessary when parsing literals.
gitbase - v0.24.0-rc2

Published by ajnavarro about 5 years ago

Fixed

  • plan: return types in lowercase in SHOW CREATE TABLE (#827)
  • analyzer: do not erase sort node when pushing it down (#818)
  • Fixed null errors during value comparisons (#831)
  • plan: fix race conditions in Exchange node
  • Add CHAR and DATETIME types support (#823)
  • Also check sockets bind to tcp6 and fail on all closed sockets (#824)

Changed

  • Added LIKE test with newlines (#820)
  • Convert LIKE patterns to specific Go regexes (#817)
gitbase - v0.24.0-rc1

Published by ajnavarro about 5 years ago

Added

  • function: use new caches from go-mysql-server (#957)

Changed

  • go-borges library was updated to 0.1.3:
    • support metadata reloading issue
    • speedup loading legacy sivas with lots of references issue
    • fix bug that misplaced location metadata issue
gitbase - v0.24.0-beta3

Published by ajnavarro about 5 years ago

Added

  • uast_imports function to gather import paths from an UAST.
  • sql: implement memory management system for caches (#802)
  • function: implement regexp_matches (#794)

Fixed

  • Added a checker that will detect dead sockets before the timeout (Linux only)
  • Make Sleep check for cancelled context every second (#798)
gitbase - v0.24.0-beta2

Published by ajnavarro about 5 years ago

Changed

  • When it's added the -v verbose flag, gitbase will use debug as logging level, ignoring any other passed (#935)

Fixed

  • If using docker image, and info logging level, it will be now used instead of debug (#935)
  • sql/analyzer: fix order by resolution for all nodes (#793)
  • sql: fix SQL method for arrays of JSON (#790)
gitbase - v0.24.0-beta1

Published by ajnavarro over 5 years ago

Added

  • Varchar type.
  • FIRST and LAST aggregations.
  • Count distinct aggregation.

Changed

  • Errors now report the repository causing the error, if possible.
  • Switch some types of known or maximum length (mostly hashes and emails)
    to VarChar with a size.
  • Traces now have a root span.
  • New API for node transformations.

Fixed

  • Fixed the behaviour of limit and offset.
  • Resolution of HAVING nodes.
gitbase - v0.23.1

Published by ajnavarro over 5 years ago

Fixed

  • Fix the results of files table by not using git log.
gitbase - v0.23.0

Published by ajnavarro over 5 years ago

Added

Reading siva files generated with src-d/borges (as those found in PGA), require running gitbase with the following command line arguments: --format siva --non-rooted

gitbase - v0.22.0

Published by ajnavarro over 5 years ago

Added

Changed

  • Changed cli to be able to specify different formats (#866)

Fixed

  • function: correctly transform up explode nodes (#757)
  • git libraries bare or non bare format is automatically detected (#897)
  • Fix bug that created multiple object cache with incorrect size (#898)
  • sql/expression: handle null values in arithmetic expressions (#760)
  • Panic on query using EXPLODE (#755)
  • Fixed error iterating over non ready repositories (src-d/go-borges#54)
  • Error saying value could not be converted to bool.
  • function: make array_length not fail with literal null (#767)
  • server: kill queries on connection closed ((#769))
gitbase - v0.22.0-rc2

Published by ajnavarro over 5 years ago

Fixed

  • Panic on query using EXPLODE (#755)
  • Fixed error iterating over non ready repositories (src-d/go-borges#54)
  • Error saying value could not be converted to bool.
  • function: make array_length not fail with literal null (#767)
gitbase - v0.22.0-rc1

Published by ajnavarro over 5 years ago

Added

Changed

  • Changed cli to be able to specify different formats (#866)

Fixed

  • function: correctly transform up explode nodes (#757)
  • git libraries bare or non bare format is automatically detected (#897)
  • Fix bug that created multiple object cache with incorrect size (#898)
  • sql/expression: handle null values in arithmetic expressions (#760)
gitbase - 0.22.0-rc1

Published by ajnavarro over 5 years ago

Added

Changed

  • Changed cli to be able to specify different formats (#866)

Fixed

  • function: correctly transform up explode nodes (#757)
  • git libraries bare or non bare format is automatically detected (#897)
  • Fix bug that created multiple object cache with incorrect size (#898)
  • sql/expression: handle null values in arithmetic expressions (#760)
gitbase - v0.22.0-beta1

Published by ajnavarro over 5 years ago

Added

Changed

  • Changed cli to be able to specify different formats (#866)

Fixed

  • function: correctly transform up explode nodes (#757)
gitbase - v0.21.0

Published by ajnavarro over 5 years ago

Known bugs

Added

  • Added json_unquote function.
  • Added commit_file_stats function.
  • Added documentation about commit_stats.
  • Add metrics (engine, analyzer, regex, pilosa) based on go-kit interface. (#744)
  • commit_files is now squashable with blobs.
  • Moved to Go modules.
  • Add COMMIT_STATS function
  • sql: implement EXPLODE and generators (#720)

Changed

  • Removed vendor folder.
  • Upgrade enry to version v2.0.0.
  • Switch gocloc to version v0.3.0.
  • Upgrade vitess to v1.8.0 (#738)
  • Upgrade bblfsh to v4.1.0.
  • Upgrade gocloc to latest master 764f3f6ae21e.

Fixed

  • bblfsh aliases are now handled correctly (#728).
  • sql: correctly handle nulls in SQL type conversion (#753)
  • sql/parse: error for unsupported distinct on aggregations (#869)
  • internal/function: gracefully handle errors in commit_stats.
  • internal/function: take into account if repository is resolved in commit_stats (#863)
  • internal/function: Files field in commit_stats contains now proper results.
  • Fix parsing of quoted identifiers in SHOW CREATE TABLE queries (#737)
  • sql/analyzer: back-propagate expression names after adding convert (#739)
  • sql/expression: allow null literals in case branches (#741)
  • sql/plan: make LEFT and RIGHT join work as expected (#743)
gitbase - v0.21.0-beta3

Published by ajnavarro over 5 years ago

Fixed

  • bblfsh aliases are now handled correctly (#728).
  • sql: correctly handle nulls in SQL type conversion (#753)
  • sql/parse: error for unsupported distinct on aggregations (#869)
gitbase - v0.21.0-beta2

Published by ajnavarro over 5 years ago

Added

  • Added json_unquote function.
  • Added commit_file_stats function.
  • Added documentation about commit_stats.
  • Add metrics (engine, analyzer, regex, pilosa) based on go-kit interface. (#744)
  • commit_files is now squashable with blobs.

Changed

  • Removed vendor folder.
  • Upgrade enry to version v2.0.0.
  • Switch gocloc to version v0.3.0.

Fixed

  • internal/function: gracefully handle errors in commit_stats.
  • internal/function: take into account if repository is resolved in commit_stats (#863)
  • internal/function: Files field in commit_stats contains now proper results.
gitbase - v0.21.0-beta1

Published by ajnavarro over 5 years ago

Added

  • Moved to Go modules.
  • Add COMMIT_STATS function
  • sql: implement EXPLODE and generators (#720)

Changed

  • Upgrade vitess to v1.8.0 (#738)
  • Upgrade bblfsh to v4.1.0.
  • Upgrade gocloc to latest master 764f3f6ae21e.

Fixed

  • Fix parsing of quoted identifiers in SHOW CREATE TABLE queries (#737)
  • sql/analyzer: back-propagate expression names after adding convert (#739)
  • sql/expression: allow null literals in case branches (#741)
  • sql/plan: make LEFT and RIGHT join work as expected (#743)
gitbase - v0.20.0-demo1

Published by ajnavarro over 5 years ago

gitbase - v0.20.0

Published by ajnavarro over 5 years ago

Known issues

Breaking changes

  • COUNT expression is returning now int64 instead of int32
  • uast_extract function now returns a JSON for pos instead of a custom format
  • Now relative paths are used as repository_id instead of folder name

Bugfixes

New features

Documentation

  • docs: expand optimization guide on early filtering (#837)
  • Now all relevant go-mysql-server documentation is directly accessible from gitbase docs instead of pointing to external links.
  • Docs: document in-memory joins in optimization docs https://github.com/src-d/gitbase/pull/742

Performance improvements

gitbase - v0.20.0-rc4

Published by ajnavarro over 5 years ago

Bugfixes

  • upgrade go-mysql-server and gocloc (#831)
  • avoid panic when there are no fetch URLs in remote config (#836)

Documentation

  • docs: expand optimization guide on early filtering (#837)