Skip to content

Commit

Permalink
v0.1.24 added OR REPLACE to UDA alter script
Browse files Browse the repository at this point in the history
  • Loading branch information
pdesmarets committed Mar 20, 2019
1 parent a5919e5 commit f005cd8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "Cassandra",
"version": "0.1.23",
"versionDate": "2019-03-13",
"version": "0.1.24",
"versionDate": "2019-03-20",
"author": "hackolade",
"engines": {
"hackolade": "2.1.x",
Expand Down
2 changes: 1 addition & 1 deletion reverse_engineering/cassandraHelper.js
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ const handleUDA = (uda) => {
const udaData = uda.rows.map(item => {
const args = item.argument_types.map(removeFrozen).join(', ');

const aggr = `CREATE AGGREGATE ${item.aggregate_name} (${args})` +
const aggr = `CREATE OR REPLACE AGGREGATE ${item.aggregate_name} (${args})` +
`\n\t\t\tSFUNC ${item.state_func}` +
`\n\t\t\tSTYPE ${removeFrozen(item.state_type)}` +
(item.final_func !== null ? `\n\t\t\tFINALFUNC ${item.final_func}` : '') +
Expand Down

0 comments on commit f005cd8

Please sign in to comment.