Skip to content

Commit

Permalink
Register UDFs as MetaData.Custom
Browse files Browse the repository at this point in the history
  • Loading branch information
andreidan committed Aug 4, 2017
1 parent 1866c23 commit 8cee537
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGES.txt
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,8 @@ Changes
Fixes
=====

- Fixed user defined functions persistence.

- Fixed an issue when using dots in an identifier for column creation in alter
table, where they were interpreted as sub-fields of an object. The usage of
dots as part of a column name is prohibited.
Expand Down
2 changes: 1 addition & 1 deletion sql/src/main/java/io/crate/plugin/SQLPlugin.java
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ public List<NamedWriteableRegistry.Entry> getNamedWriteables() {
public List<NamedXContentRegistry.Entry> getNamedXContent() {
List<NamedXContentRegistry.Entry> entries = new ArrayList<>();
entries.add(new NamedXContentRegistry.Entry(
UserDefinedFunctionsMetaData.class,
MetaData.Custom.class,
new ParseField(UserDefinedFunctionsMetaData.TYPE),
UserDefinedFunctionsMetaData::fromXContent
));
Expand Down

0 comments on commit 8cee537

Please sign in to comment.