View a markdown version of this page

Reading from Maxio entities - AWS Glue

Reading from Maxio entities

Prerequisites

A Maxio object you want to read from. See the supported entities table below for the available entities.

Supported entities for source

EntityCan be filteredSupports limitSupports select *Supports order bySupports partitioning
customerYesNoYesNoYes
invoiceYesNoYesNoYes
subscriptionYesNoYesNoNo
productYesNoYesNoYes
couponNoNoYesNoNo
componentYesNoYesNoYes
component-price-pointNoNoYesNoNo
eventNoNoYesNoNo
product-familyYesNoYesNoYes
product-price-pointNoNoYesNoNo
subscription-componentNoNoYesNoNo
invoice-eventNoNoYesNoNo
subscription-component-usageYesNoYesNoYes
allocationNoNoYesNoNo
credit-noteYesNoYesNoYes
payment-profileNoNoYesNoNo
subscription-groupNoNoYesNoNo
offerNoNoYesNoNo
Example – Reading from a Maxio entity

The following example reads from the customer entity. Replace connectionName with the name of your Maxio connection:

read_df = glueContext.create_dynamic_frame.from_options( connection_type="maxio", connection_options={ "connectionName": "connectionName", "ENTITY_NAME": "customer" } )

Partitioning queries

You can provide the additional Spark options PARTITION_FIELD, LOWER_BOUND, UPPER_BOUND, and NUM_PARTITIONS to read in parallel. The query is split into NUM_PARTITIONS sub-queries that Spark runs concurrently. The following entities and fields support partitioning:

EntityPartitioning field
customercreated_at
invoicecreated_at
productcreated_at
componentcreated_at
product-familycreated_at
subscription-component-usagecreated_at
credit-noteissue_date