Extending Db2 Big SQL
You can extend the capability of Db2® Big SQL by adding certain JAR files.
About this task
You can use Java™ packages that are available from the web,
or Java packages that you create to extend the functions of Db2 Big SQL. You extend Db2 Big SQL by adding JAR files to the appropriate paths. BigSQL includes a useful custom SerDe (Serializer/Deserializer) extension for processing JSON data, which can be used to transform a JSON record into something that Db2 Big SQL can process. To use this SerDe, specify the ROW FORMAT SERDE option in the CREATE TABLE syntax. For example:
CREATE EXTERNAL HADOOP TABLE bigsql.example_json (
col1 int
col2 date
) ROW FORMAT SERDE 'com.ibm.biginsights.bigsql.serde.JSONSerDe';
In
addition to this custom JSONSerDe
, which has been provided already, you can add or
create your own custom SerDe or download it from the web.When you add a JAR file to Db2 Big SQL, the JAR file is available to the Db2 Big SQL JVM and the MapReduce JVMs.