dgraph v1.1.1 Release Notes

Release Date: 2019-12-16 // over 4 years ago
  • ๐Ÿ”„ Changed

    • ๐Ÿ’ฅ Breaking changes for expand() queries
      • Remove expand(_forward_) and expand(_reverse_). (#4119)
      • Change expand(_all_) functionality to only include the predicates in the type. (#4171)
    • โž• Add support for Go Modules. (#4146)
    • Simplify type definitions: type definitions no longer require the type (string, int, etc.) per field name. (#4017)
    • โž• Adding log lines to help troubleshoot snapshot and rollup. (#3889)
    • โž• Add --http flag to configure pprof endpoint for live loader. (#3846)
    • ๐Ÿ‘‰ Use snappy compression for internal gRPC communication. (#3368)
    • Periodically run GC in all dgraph commands. (#4032, #4075)
    • Exit early if data files given to bulk loader are empty. (#4253)
    • โž• Add support for first and offset directive in has function. (#3970)
    • Pad encData to 17 bytes before decoding. (#4066)
    • โœ‚ Remove usage of deprecated methods. (#4076)
    • ๐Ÿ‘‰ Show line and column numbers for errors in HTTP API responses. (#4012)
    • ๐Ÿ”€ Do not store non-pointer values in sync.Pool. (#4089)
    • ๐Ÿ‘Œ Verify that all the fields in a type exist in the schema. (#4114)
    • โšก๏ธ Update badger to version v2.0.0. (#4200)
    • Introduce StreamDone in bulk loader. (#4297)

    Enterprise features:

    • ACL: Disallow schema queries when an user has not logged in. (#4107)
    • ๐Ÿ›  Block delete if predicate permission is zero. Fixes #4265. (#4349)

    โž• Added

    • ๐Ÿ‘Œ Support @cascade directive at subqueries. (#4006)
    • ๐Ÿ‘Œ Support @normalize directive for subqueries. (#4042)
    • ๐Ÿ‘Œ Support val() function inside upsert mutations (both RDF and JSON). (#3877, #3947)
    • ๐Ÿ‘Œ Support GraphQL Variables for facet values in @facets filters. (#4061)
    • ๐Ÿ‘Œ Support filtering by facets on values. (#4217)
    • โž• Add ability to query expand(TypeName) only on certain types. (#3920)
    • ๐Ÿ”ฆ Expose numUids metrics per query to estimate query cost. (#4033)
    • Upsert queries now return query results in the upsert response. (#4269, #4375)
    • โž• Add support for multiple mutations blocks in upsert blocks. (#4210)
    • โž• Add total time taken to process a query in result under "total_ns" field. (#4312)

    Enterprise features:

    • โž• Add encryption-at-rest. (#4351)

    โœ‚ Removed

    • ๐Ÿ’ฅ Breaking change: Remove @type directive from query language. To filter an edge by a type, use @filter(type(TypeName)) instead of @type(TypeName). (#4016)

    Enterprise features:

    • โœ‚ Remove regexp ACL rules. (#4360)

    ๐Ÿ›  Fixed

    • Avoid changing order if multiple versions of the same edge is found.
    • ๐Ÿ›  Consider reverse count index keys for conflict detection in transactions. Fixes #3893. (#3932)
    • Clear the unused variable tlsCfg. (#3937)
    • Do not require the last type declaration to have a new line. (#3926)
    • ๐Ÿ‘Œ Verify type definitions do not have duplicate fields. Fixes #3924. (#3925)
    • ๐Ÿ›  Fix bug in bulk loader when store_xids is true. Fixes #3922. (#3950)
    • ๐Ÿ›  Call cancel function only if err is not nil. Fixes #3966. (#3990)
    • ๐Ÿ”„ Change the mapper output directory from $TMP/shards to $TMP/map_output. Fixes #3959. (#3960)
    • Return error if keywords used as alias in groupby. (#3725)
    • ๐Ÿ›  Fix bug where language strings are not filtered when using custom tokenizer. Fixes #3991. (#3992)
    • ๐Ÿ‘Œ Support named queries without query variables. Fixes #3994. (#4028)
    • ๐Ÿ“ฆ Correctly set up client connection in x package. (#4036)
    • ๐Ÿ›  Fix data race in regular expression processing. Fixes #4030. (#4065)
    • ๐Ÿ›  Check for n.Raft() to be nil, Fixes #4053. (#4084)
    • ๐Ÿ›  Fix file and directory permissions for bulk loader. (#4088)
    • Ensure that clients can send OpenCensus spans over to the server. (#4144)
    • ๐Ÿ”„ Change lexer to allow unicode escape sequences. Fixes #4157.(#4175)
    • ๐Ÿ›  Handle the count(uid) subgraph correctly. Fixes #4038. (#4122)
    • ๐Ÿ›  Don't traverse immutable layer while calling iterate if deleteBelowTs > 0. Fixes #4182. (#4204)
    • ๐Ÿ›  Bulk loader allocates reserved predicates in first reduce shard. Fixes #3968. (#4202)
    • Only allow one alias per predicate. (#4236)
    • ๐Ÿ”„ Change member removal logic to remove members only once. (#4254)
    • Disallow uid as a predicate name. (#4219)
    • Drain apply channel when a snapshot is received. (#4273)
    • โž• Added RegExp filter to func name. Fixes #3268. (#4230)
    • ๐Ÿ”’ Acquire read lock instead of exclusive lock for langBaseCache. (#4279)
    • โž• Added proper handling of int and float for math op. #4132. (#4257)
    • Don't delete group if there is no member in the group. (#4274)
    • ๐Ÿ›  Sort alphabets of languages for non indexed fields. Fixes #4005. (#4260)
    • Copy xid string to reduce memory usage in bulk loader. (#4287)
    • โž• Adding more details for mutation error messages with scalar/uid type mismatch. (#4317)
    • ๐Ÿ›  Limit UIDs per variable in upsert. Fixes #4021. (#4268)
    • ๐Ÿ›  Return error instead of panic when geo data is corrupted. Fixes #3740. (#4318)
    • ๐Ÿ‘‰ Use txn writer to write schema postings. (#4296)
    • ๐Ÿ›  Fix connection log message in dgraph alpha from "CONNECTED" to "CONNECTING" when establishing a connection to a peer. Fixes #4298. (#4303)
    • ๐Ÿ›  Fix segmentation fault in backup. (#4314)
    • ๐Ÿ‘ท Close store after stoping worker. (#4356)
    • Don't pre allocate mutation map. (#4343)
    • ๐Ÿ›  Cmd: fix config file from env variable issue in subcommands. Fixes #4311. (#4344)
    • ๐Ÿ›  Fix segmentation fault in Alpha. Fixes #4288. (#4394)
    • ๐Ÿ›  Fix handling of depth parameter for shortest path query for numpaths=1 case. Fixes #4169. (#4347)
    • Do not return dgo.ErrAborted when client calls txn.Discard(). (#4389)
    • ๐Ÿ›  Fix has pagination when predicate is queried with @lang. Fixes #4282. (#4331)
    • ๐Ÿ›  Make uid function work with value variables in upsert blocks. Fixes #4424. (#4425)

    Enterprise features:

    • ๐Ÿ›  Fix bug when overriding credentials in backup request. Fixes #4044. (#4047)
    • โช Create restore directory when running "dgraph restore". Fixes #4315. (#4352)
    • โช Write group_id files to postings directories during restore. (#4365)