The SingleStore connector allows Dremio to connect to and query data in a SingleStore database. This can then allow you to build custom reports, dashboards, or even just ad-hoc SQL via your client tool of choice.
The Advanced Relational Pushdown (ARP) Framework allows for the creation of Dremio plugins for any data source which has a JDBC driver and accepts SQL as a query language. It allows for a mostly code-free creation of a plugin, allowing for modification of queries issued by Dremio using a configuration file.
There are three files that are necessary for creation of an ARP-based plugin:
SingleStoreConf.java
)singlestore-arp.yaml
)singlestore-layout.json
)The storage plugin configuration file tells Dremio what the name of the plugin should be, what connection options should be displayed in the source UI, what the name of the ARP file is, which JDBC driver to use and how to make a connection to the JDBC driver.
The ARP YAML file is what is used to modify the SQL queries that are sent to the JDBC driver, allowing you to specify support for different data types and functions, as well as rewrite them if tweaks need to be made for your specific data source.
Tutorial on ARP connectors: https://www.dremio.com/resources/tutorials/how-to-create-an-arp-connector/.
The ARP file is broken down into several sections:
metadata
syntax
data_types
relational_algebra - This section is divided up into a number of other subsections:
If an operation or function is not specified in the ARP file, then Dremio will handle the operation itself. Any operations which are indicated as supported but need to be stacked on operations which are not will not be pushed down to the SQL query.
If you need to compile this plugin with another Dremio version, you need to update pom.xml
: version
and properties->version.dremio
and run the steps below. This plugin should work with Dremio 17+.
pom.xml
file run mvn clean install
$DREMIO_HOME/jars
folder in Dremio$DREMIO_HOME/jars/3rdparty
folder.