pinot_connect.options🔗
QueryOptions🔗
Helper object for constructing query options for pinot
All values are optional and default to being not set (will not be included in passed options)
Attributes:
timeout_ms
- timeout of query in millisecondsenable_null_handling
- enable advanced null handlingexplain_plan_verbose
- return verbose result forEXPLAIN
queryuse_multi_stage_engine
- e multi-stage engine for executing querymax_execution_threads
- Maximum threads to use to execute the querynum_replica_groups_to_query
- When replica-group based routing is enabled, use it to query multiple replica-groupsmin_segment_group_trim_size
- Minimum groups to keep when trimming groups at the segment level for group-by queriesmin_server_group_trim_size
- Minimum groups to keep when trimming groups at the server level for group-by queriesserver_return_final_result
- For aggregation and group-by queries, ask servers to directly return final results instead of intermediate results for aggregationserver_return_final_result_key_unpartitioned
- For group-by queries, ask servers to directly return final results instead of intermediate results for aggregationsskip_indexes
- Which indexes to skip usage of (i.e. scan instead), per-columnskip_upsert
- For upsert-enabled table, skip the effect of upsert and query all the recordsuse_star_tree
- Useful to debug the star-tree indexand_scan_reordering
- See descriptionmax_rows_in_join
- Configure maximum rows allowed in a join operationin_predicate_pre_sorted
- (Only apply to STRING columns) Indicates that the values in the IN clause is already sorted, so that Pinot doesn't need to sort them again at query timein_predicate_lookup_algorithm
- The algorithm to use to look up the dictionary ids for the IN clause valuesmax_server_response_size_bytes
- Long value config indicating the maximum length of the serialized response per server for a querymax_query_response_size_bytes
- Long value config indicating the maximum serialized response size across all servers for a queryfiltered_aggregations_skip_empty_groups
- This config can be set to true to avoid computing all the groups in a group by query with only filtered aggregations (and no non-filtered aggregations)
to_kv_pair🔗
Pinot's servers expect query options to be sent as 'option1=value;option2=value
ClientOptions🔗
Options too pass on to the underlying httpx Client/AsyncClient constructor
Attributes:
cookies
- (optional) Dictionary of Cookie items to include when sending requestsverify
- (optional) EitherTrue
to use an SSL context with the default CA bundle,False
to disable verification, or an instance ofssl.SSLContext
to use a custom contextcert
- (optional) Path(s) to the SSL certificate file(s)trust_env
- (optional) Enables or disables usage of environment variables for configurationproxy
- (optional) A proxy URL where all the traffic should be routedtimeout
- (optional) The timeout configuration to use when sending request, all in secondsfollow_redirects
- (optional) Whether to follow redirects when sending request. Default:true
.limits
- (optional) The limits configuration to use.max_redirects
- (optional) The maximum number of redirect responses that should be followed request URLstransport
- (optional) A transport class to use for sending requests over the networkevent_hooks
- (optional) A list of hooks to when either request has been prepared or reponse has been fetcheddefault_encoding
- (optional) The default encoding to use for decoding response text, if no charset information is included in a response Content-Type header. Set to a callable for automatic character set detection.Default
- "utf-8".
RequestOptions🔗
Options to pass to the actual HTTP request via execute methods
Attributes:
cookies
- (optional) Dictionary of Cookie items to include when sending requeststimeout
- (optional) The timeout configuration to use when sending request, all in secondsextensions
- (optional) Optional dictionary for low-level request customizations