List of Samples

We maintain a list of samples on the DataConnectors repo on GitHub. Each of the links below links to a folder in the sample repository. Generally these folders include a readme, one or more .pq / .query.pq files, a project file for Visual Studio, and in some cases icons. To open these files in Visual Studio, make sure you've set up the SDK properly, and run the .mproj file from the cloned or downloaded folder.

Functionality

Sample Description Link
Hello World This simple sample shows the basic structure of a connector. GitHub Link
Hello World with Docs Similar to the Hello World sample, this sample shows how to add documentation to a shared function. GitHub Link
Navigation Tables This sample provides two examples of how to create a navigation table for your data connector using the Table.ToNavigationTable function. GitHub Link
Unit Testing This sample shows how you can add simple unit testing to your <extension>.query.pq file. GitHub Link

OAuth

Sample Description Link
GitHub This sample corresponds to the GitHub connector tutorial. GitHub Link

ODBC

Sample Description Link
SQL This connector sample serves as a template for ODBC connectors. GitHub Link
Redshift This connector sample uses the Redshift ODBC driver, and is based on the connector template. GitHub Link
Hive LLAP This connector sample uses the Hive ODBC driver, and is based on the connector template. GitHub Link
Snowflake This connector sample uses the Snowflake ODBC driver, and is based on the connector template. GitHub Link
Impala This connector sample uses the Cloudera Impala ODBC driver, and is based on the connector template. GitHub Link
Direct Query for SQL This sample creates an ODBC-based custom connector that enables Direct Query for SQL Server. GitHub Link

TripPin

Sample Description Link
Part 1 This sample corresponds to TripPin Tutorial Part 1 - OData. GitHub Link
Part 2 This sample corresponds to TripPin Tutorial Part 2 - REST. GitHub Link
Part 3 This sample corresponds to TripPin Tutorial Part 3 - Navigation Tables. GitHub Link
Part 4 This sample corresponds to TripPin Tutorial Part 4 - Data Source Paths. GitHub Link
Part 5 This sample corresponds to TripPin Tutorial Part 5 - Paging. GitHub Link
Part 6 This sample corresponds to TripPin Tutorial Part 6 - Enforcing Schema. GitHub Link
Part 7 This sample corresponds to TripPin Tutorial Part 7 - Advanced Schema with M Types. GitHub Link
Part 8 This sample corresponds to TripPin Tutorial Part 8 - Adding Diagnostics. GitHub Link
Part 9 This sample corresponds to TripPin Tutorial Part 9 - Test Connection. GitHub Link
Part 10 This sample corresponds to TripPin Tutorial Part 10 - Basic Query Folding. GitHub Link