View a markdown version of this page

Reading from Paddle entities - AWS Glue

Reading from Paddle entities

Prerequisites

A Paddle 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
adjustmentsYesYesYesNoNo
checkout_domainsYesYesYesNoNo
client_tokensNoYesYesNoNo
customersYesYesYesNoNo
addressesYesYesYesNoNo
businessesYesYesYesNoNo
credit_balancesYesYesYesNoNo
customer_payment_methodsYesYesYesNoNo
discount_groupsYesYesYesNoNo
discountsYesYesYesNoNo
event_typesNoYesYesNoNo
eventsYesYesYesNoNo
notification_settingsYesYesYesNoNo
notificationsYesYesYesNoNo
notification_logsNoYesYesNoNo
pricesYesYesYesNoNo
productsYesYesYesNoNo
simulation_typesNoYesYesNoNo
simulation_run_eventsYesYesYesNoNo
subscription_historyYesYesYesNoNo
subscriptionsYesYesYesNoNo
transactionsYesYesYesNoYes
Example – Reading from a Paddle entity

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

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

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
transactionscreated_at
transactionsbilled_at