AsterixDB recently introduced a patch https://asterix-gerrit.ics.uci.edu/#/c/3267/ that no longer supports using the request body as statement. Instead, a parameter called "statement" must be provided to define a set of queries to be executed. As a results, many scripts used by Cloudberry will not work and must be fixed when upgrading AsterixDB.
The following changes can be used to fix the scripts:
removes -XPOST (as POST is implicit for curl's --data options)
uses URL encoding instead of binary encoding for the content, and
provides the parameter name statement on the curl command line instead if providing it in the body.
An example is as follows:
cat <<EOF | curl --data-urlencode statement@- http://localhost:19002/query/service
drop dataverse twitter if exists;
create dataverse twitter if not exists;
use twitter;
...
EOF
AsterixDB recently introduced a patch https://asterix-gerrit.ics.uci.edu/#/c/3267/ that no longer supports using the request body as statement. Instead, a parameter called "statement" must be provided to define a set of queries to be executed. As a results, many scripts used by Cloudberry will not work and must be fixed when upgrading AsterixDB.
The following changes can be used to fix the scripts:
An example is as follows:
Reference: https://issues.apache.org/jira/browse/ASTERIXDB-2543