Query install failed after Upgrade from 3.2.1 to 3.2.2 in production

Symptoms

After upgrading from 3.2.1 to 3.2.2, query installation failed.

query_install_failed_after_upgrade_1

Error Messages

Warning: comparison between signed integer expression
java.lang.NullPointException
query_install_failed_after_upgrade_2
query_install_failed_after_upgrade_3

Cause

System bug.

INT size= Source.size();

Resolution

The issue was fixed in 3.8.0

Workaround

To workaround this issue, please use the following steps:

As the INT can’t assign the value to size, so we just need to divide this statement into two parts.

INT size;
size = Source.size();