Skip to main content
Welcome to AbstraOverviewAuthenticationOverviewTreasury DashboardAuthenticated Task ManagerExpense Submission FormSystem Status MonitorFiltered Orders TableStreaming Progress BarStreaming File DownloadStreaming Video with Media Source ExtensionsFile uploads in PagesGetUserFailedget_query_paramsget_userregister_staticOverviewBasicsExternal DataReactive PagesPre-filled fieldsRedirectCustom ValidationProgress BarCustom ButtonsGetting User InformationQuery ParametersCRUD with DatabaseClient-side JavaScriptOverviewAppointmentInputCardsInputCheckboxInputChecklistInputCnpjInputCodeInputCpfInputCurrencyInputCustomInputDateInputDropdownInputEmailInputOverviewCameraInputImageInputVideoInputListInputMultipleChoiceInputNpsInputNumberInputNumberSliderInputPandasRowSelectionInputPasswordInputPhoneInputRatingInputRichTextInputRowTagInputTextInputTextareaInputTimeInputToggleInputOverviewFileOutputHtmlOutputIframeOutputImageOutputLatexOutputLinkOutputMarkdownOutputPandasOutputPlotlyOutputProgressOutputTextOutputStep TypesAuthenticationForm SettingsNotificationsHome Page and SidebarOverviewBackButtonExitButtonNextButtonend_page_stepexecute_jsget_query_paramsget_userListItemSchemarunWidgetOverviewBasic HookReceiving Connector EventsReceiving EmailsTriggering Hooksget_email_requestget_raw_requestget_requestsend_jsonsend_responseJobsOverviewSending a taskGetting and using TasksIterate through tasksGet trigger task (Tasklet)TaskletsTask Schema Validationget_sent_tasksget_tasksget_trigger_taskiter_taskssend_taskTaskOverviewPrompt ConstructionToolsExamplesWorkflowAgentsPromptingFixed answer formatReading an InvoiceParsing DocumentsOverviewBrowserToolsConnectorsToolsFilesToolsTablesToolsextract_textparse_bank_statementparse_boletoparse_invoiceparse_nfeparse_nfseparse_oficiosparse_us_driver_licenseparse_us_passportpromptrun_agentOverviewCreating and Loading FilesPublic Filesget_persistent_dirget_public_dirOverviewThe custom actionrun_connection_actionDatabricksItaú ExtratosOverviewConsultasEmissão de NFS-eEventos de NFS-eTroubleshootingGoogle DriveOverviewEnvio de Lote de RPS (Versão 2)Itaú VAN (SFTP)OverviewReading dataSupplier invoice (MIRO)Bank statementTransactional sessionsValue helpsTroubleshootingAbstra Cash ConnectOverviewIssuing an NF-eEvents: Cancellation and Correction LetterTroubleshootingBlingBradescoOverviewAttaching Files to NetSuite RecordsRetrieving and Updating Files in NetSuiteSearching Files Attached to RecordsSearching Files in NetSuite File CabinetUploading Files to NetSuite File CabinetCreating Custom Reports with NetSuite Purchase OrdersCreating Purchase Orders and Attaching Files in NetSuiteFiltering Purchase Orders by Custom FieldsReading Purchase Order Line ItemsReading Purchase Order DetailsSearching and Filtering Purchase OrdersOverviewGetting Invoice Details and TransactionsListing and Searching Invoices99Abstra Manager APIAbstra Project APIADN NFS-eAdyenAnchorage DigitalAsaasAmazon Web ServicesMicrosoft AzureBanco ABCBanco do BrasilBanrisulBase ChainBanco Central do BrasilBetha e-Nota CloudBigDataCorpBinanceBitstampBlingBotConversaBradescoBrasil APIBrazeBrexBS2BTG Pactual Empresas (Custom App)BTG Pactual EmpresasAbstra Cash ConnectCelcoinCerttaCielo e-CommerceCielo EDI LinkCielo Extrato EletrônicoCieloClaraClicksignClickUpCNJ - DataJudCNJ - Domicílio Judicial EletrônicoCNJ - Diário de Justiça Eletrônico NacionalCobranSaaSCoinbase CDPCoinbase Commerce (Business)Coinbase Exchange / Prime / INTX / Derivatives (HMAC)ConfluenceConfluence (API Token)Conta AzulConta SimplesMicrosoft Copilot Studio (Custom App)CresolCRS 360Databricks AccountDatabricks WorkspaceDatatravelData Rudder (DeLorean)DFNSDiscordDocuSign (JWT)DocuSignDynamics 365 Business CentralenContacteNotas GatewayEquals ConnectEthereumFirecrawlFiservFlashFlukeFoxbitFreshserviceGoogle Cloud PlatformGitHub (Personal Access Token)GitHubGmailGoogle AnalyticsGoogle BigQuery (Service Account)Google BigQueryGoogle Calendar (Service Account)Google CalendarGoogle Chat (Service Account)Google ChatGoogle Docs (Service Account)Google DocsGoogle Drive (Service Account)Google DriveGoogle Maps (Service Account)Google Maps (API Key)Google MapsGoogle Sheets (Service Account)Google SheetsGranatumGRF/OFMHi PlatformHolmesHubSpotIBGEiFoodInfosimplesBanco InterIntercomItaú BoletosItaú ExtratosItaú Pagamentos (SISPAG)Itaú PixItaú VAN (SFTP)IuguJD Pagamentos InstantâneosJiraJira (API Token)KommoKraken DerivativesKraken SpotLinkedInLinx OMALitecoinLookerMagaluMailchimpMCPMega ERPMercado BitcoinMercado LivreMercado PagoMercosMetabaseMicrosoft 365 Copilot (Custom App)Microsoft BookingsMicrosoft ExcelMicrosoft OneNoteMicrosoft Outlook (Service Principal)Microsoft OutlookMicrosoft PlannerMicrosoft SharePoint + OneDrive (Service Principal)Microsoft SharePoint + OneDriveMicrosoft Teams (Service Principal)Microsoft TeamsMicrosoft To DoMonday.comMXM WebManagerMySQLNektnetLexNetSuite OAuth2NetSuite TBANexxera - Nix EmpresasNexxera - Nix PayNF-e São PauloNordVPNNota BarueriNota PaulistanaNota SalvadorNotionNotion (API Token)NuPayOKXOlist EcommerceOlist ERPOmie ERPOneStreamOnFlyOracle E-Business SuiteOracle DatabasePagarePagar.mePagBank EDIPagSeguroPayPalPipedrivePipedrive (API Token)PipefyPodioPolygonPostgreSQLPostmanProJuris EmpresasProJurisQiveQuickBooksRappiRDP (Windows Remote)Recall.aiReceita Federal - Apuração Assistida CBSReceiv BIRedecard (e.Rede)Amazon RedshiftRevolut BusinessRevolut MerchantRevolut Open BankingSabespSafeguardSalesforceSankhyaSantanderSAP ABAP Development Tools (ADT)SAP Cloud ConnectorSAP ConcurSAP CPI (Integration Suite)S/4HANASAP Service LayerSBA CertificationsSentrySerproSerpro Integra ContadorSFTPShopify StorefrontShopifySicoobSicrediSiengeBanco Central do Brasil - SiscomSlack (API Token)SlackSnowflakeSolanaSQL ServerBanco Central do Brasil - STA (Sistema de Transferência de Arquivos)Stark BankStripe (API Key)StripeSVB (Silicon Valley Bank)Takotl;dvTodoistTotal BankTotalPassTotvsTravellinkConsumo de Tributos GovTRONTypeformTyxterUAUWeb (Globaltec)UberVERT CapitalVindiVórtx VxRecebíveisVórtxVTEXWhatsApp BusinessWhatsApp Business (API Token)WhatsApp (RPA)WoofficeWoopayXP InvestimentosXRP Ledger (Ripple)YunoZé DeliveryZendeskZendesk (API Token)OverviewInserting rowsSelecting rowsUpdating rowsDeleting dataUsing SQLUsing comparatorsImporting & Exporting Datadelete_by_idinsertis_betweenis_eqis_gtis_gteis_ilikeis_inis_likeis_ltis_lteis_neqis_not_ilikeis_not_inis_not_likeis_not_nullis_nullquery_dfrunrun_sqlselectselect_by_idselect_dfselect_oneTablesExecutionErrorupdateupdate_by_idBuilt-in TablesTransactionsOverviewDeclaring actionsabstra.servicesOverviewExamplesOverviewSingle Sign-On (SSO)Environment VariablesOverviewUsing Abstra LoggerOverviewExamplessend_emailUI PreferencesRetrieving Project URLRetrieving Run IDPublishingUsing Legacy Threads
Cloud Console

Using comparators

Comparators describe a single column condition in a where / values filter. Anywhere the Tables SDK accepts a filter dict — select, select_one, select_df, update, delete — you can replace a plain value with a comparator to express ranges, lists, pattern matches, null checks, and more.

The rule of thumb:

  • a plain value in a filter dict means column = value (it's equivalent to the comparator is_eq),
  • None in a filter dict means column IS NULL (it's equivalent to the comparator is_null()),
  • everything else uses an explicit comparator like is_gt(...), is_in([...]), is_ilike(...), etc.

Full list of comparators​

FunctionSQLDescription
is_eq(value)... = valueEqual to (same as passing value directly)
is_neq(value)... <> valueNot equal to
is_gt(value)... > valueGreater than
is_gte(value)... >= valueGreater than or equal
is_lt(value)... < valueLess than
is_lte(value)... <= valueLess than or equal
is_between(value1, value2)... BETWEEN value1 AND value2Inclusive range
is_in(values)... IN (...)Value is in the given list
is_not_in(values)... NOT IN (...)Value is not in the given list
is_like(pattern)... LIKE patternPattern match (case-sensitive)
is_not_like(pattern)... NOT LIKE patternNegated pattern match
is_ilike(pattern)... ILIKE patternPattern match (case-insensitive)
is_not_ilike(pattern)... NOT ILIKE patternNegated case-insensitive pattern match
is_null()... IS NULLColumn is NULL (same as passing None)
is_not_null()... IS NOT NULLColumn is not NULL

All comparators are imported from abstra.tables:

from abstra.tables import ( is_eq, is_neq, is_gt, is_gte, is_lt, is_lte, is_between, is_in, is_not_in, is_like, is_not_like, is_ilike, is_not_ilike, is_null, is_not_null, )

Equality and inequality​

is_eq is the explicit form of the default behavior and we recommend relying in the default behavior instead of explicitly using this comparator. Use is_neq when you want the opposite behavior.

from abstra.tables import select, is_eq, is_neq # These two calls are equivalent: select("users", where={"status": "active"}) select("users", where={"status": is_eq("active")}) # Everyone whose status is NOT "active": select("users", where={"status": is_neq("active")})

Ranges (is_gt, is_gte, is_lt, is_lte, is_between)​

Compare numeric, date, or datetime columns. The example below shows is_gt in select, is_gte in update, and is_lt in delete:

from datetime import date, timedelta from abstra.tables import select, update, delete, is_gt, is_gte, is_lt # SELECT — orders above 1000 big_orders = select( "orders", where={"total_cents": is_gt(100_000)}, ) # UPDATE — mark all VIPs (>= 10k lifetime spend) update( "users", set={"tier": "vip"}, where={"lifetime_spend_cents": is_gte(1_000_000)}, ) # DELETE — drop logs older than 30 days delete( "logs", {"created_at": is_lt((date.today() - timedelta(days=30)).isoformat())}, )

is_between covers an inclusive range (BETWEEN low AND high):

from abstra.tables import select, is_between # Users aged 18 to 25 inclusive select("users", where={"age": is_between(18, 25)})

Lists (is_in, is_not_in)​

Use a list of values for IN / NOT IN checks. is_in([]) matches no rows, including rows with NULL in the filtered column; it produces a false predicate rather than an invalid IN () clause:

from abstra.tables import select, delete, is_in, is_not_in # Select users in any of these regions select( "users", where={"region": is_in(["NA", "EU", "LATAM"])}, ) # Delete logs that aren't from the prod environment delete( "logs", {"env": is_not_in(["production"])}, )

Null checks (is_null, is_not_null)​

None is treated as IS NULL, so is_null() is rarely needed, use it when you want to be explicit. is_not_null() has no shortcut and is the standard way to express IS NOT NULL:

from abstra.tables import select, delete, is_not_null # These two are equivalent: select("users", where={"deleted_at": None}) # from abstra.tables import is_null # select("users", where={"deleted_at": is_null()}) # Users that have already verified their email: select("users", where={"verified_at": is_not_null()}) # Cleanup: drop unverified pending invites delete("invites", {"accepted_at": None, "status": "pending"})

Pattern matching (is_like, is_ilike, and their negations)​

is_like is case-sensitive and is_ilike is case-insensitive. Both take a SQL pattern string with two wildcards:

  • % matches any sequence of characters, including the empty string. So "abc%" matches anything starting with "abc" ("abc", "abcdef", …), "%@gmail.com" matches anything ending with "@gmail.com", and "%silva%" matches anything that contains "silva" anywhere.
  • _ matches exactly one character. So "a_c" matches "abc", "axc", "a9c".

Any character that isn't % or _ is matched literally. To match a literal % or _ in the column value, prefix it with \ (e.g. "50\%" to match the string "50%").

from abstra.tables import select, update, delete, is_like, is_ilike, is_not_ilike # SELECT — case-sensitive prefix match select( "products", where={"sku": is_like("APX-%")}, ) # SELECT — case-insensitive contains select( "users", where={"name": is_ilike("%silva%")}, ) # UPDATE — flag suspicious emails update( "users", set={"flagged": True}, where={"email": is_ilike("%@tempmail.%")}, ) # DELETE — drop test accounts (case-insensitive), but keep anything # that doesn't look like a test prefix delete( "users", {"email": is_ilike("test+%@%")}, ) # SELECT — everything that is NOT a noreply address select( "messages", where={"from_email": is_not_ilike("noreply@%")}, )

Combining comparators in one filter​

All keys in a single filter dict are combined with AND. Use this to layer comparators:

from datetime import date, timedelta from abstra.tables import select, is_gte, is_in, is_ilike, is_not_null active_premium_brazilians = select( "users", where={ "status": "active", "tier": is_in(["premium", "vip"]), "country": "BR", "email": is_ilike("%@%.com.br"), "last_login_at": is_gte((date.today() - timedelta(days=30)).isoformat()), "deleted_at": None, # IS NULL "verified_at": is_not_null(), # IS NOT NULL }, )

For conditions that can't be expressed as a flat AND of column checks (joins, OR across columns, subqueries), drop down to run_sql.