Skip to content

Commit

Permalink
Revert "Fixes fmt"
Browse files Browse the repository at this point in the history
This reverts commit c85010f.
  • Loading branch information
hendoxc committed Jan 13, 2025
1 parent c85010f commit 519e963
Show file tree
Hide file tree
Showing 6 changed files with 23 additions and 31 deletions.
2 changes: 1 addition & 1 deletion docs/data-sources/tables.md
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ Read-Only:

- `minimize_data_movement` (Boolean) The minimize data movement of the table.
- `replication` (String) The replication of the table.
- `schema_name` (String) The name of the used schema for table
- `schema_name` (String) The schema name of the table.
- `segment_assignment_strategy` (String) The segment assignment strategy of the table.
- `segment_push_type` (String) The segment push type of the table.
- `time_column_name` (String) The time column name of the table.
Expand Down
6 changes: 3 additions & 3 deletions docs/index.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
---
# generated by https://github.com/hashicorp/terraform-plugin-docs
page_title: "pinot Provider"
page_title: "Apache Pinot Provider for Terraform"
subcategory: ""
description: |-
---

# pinot Provider

# Apache Pinot Provider for Terraform

The Terraform Provider for Apache Pinot, the real-time distributed OLAP datastore.

## Example Usage

Expand Down
16 changes: 9 additions & 7 deletions docs/resources/schema.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,21 +16,23 @@ description: |-
resource "pinot_schema" "block_schema" {
schema_name = "ethereum_block_headers"
date_time_field_specs = [{
data_type = "LONG",
name = "block_timestamp",
format = "1:MILLISECONDS:EPOCH",
granularity = "1:MILLISECONDS",
data_type = "LONG",
name = "block_timestamp",
not_null = false,
format = "1:MILLISECONDS:EPOCH",
granularity = "1:MILLISECONDS",
transform_function = "ago('PT3H')"
}]
enable_column_based_null_handling = false
dimension_field_specs = [{
name = "block_number",
data_type = "INT",
not_null = true
},
{
name = "block_hash",
data_type = "STRING",
not_null = true,
name = "block_hash",
data_type = "STRING",
not_null = true,
transform_function = "jsonPathString(block, '$.block_hash')"
}]
metric_field_specs = [{
Expand Down
14 changes: 2 additions & 12 deletions docs/resources/table.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ description: |-
- `routing` (Attributes) routing configuration for the table (see [below for nested schema](#nestedatt--routing))
- `segments_config` (Attributes) The segments configuration for the table. (see [below for nested schema](#nestedatt--segments_config))
- `table_index_config` (Attributes) The table index configuration for the table. (see [below for nested schema](#nestedatt--table_index_config))
- `task` (Attributes) (see [below for nested schema](#nestedatt--task))
- `tenants` (Attributes) The tenants configuration for the table. (see [below for nested schema](#nestedatt--tenants))
- `tier_configs` (Attributes List) tier configurations for the table (see [below for nested schema](#nestedatt--tier_configs))
- `upsert_config` (Attributes) The upsert configuration for the table. (see [below for nested schema](#nestedatt--upsert_config))
Expand Down Expand Up @@ -137,15 +136,14 @@ Required:

- `replication` (String) The replication count for the segments.
- `time_column_name` (String) The time column name for the segments.
- `time_type` (String) The time type for the segments.

Optional:

- `deleted_segments_retention_period` (String) The deleted segments retention period for the segments.
- `replicas_per_partition` (String) The replicas per partition for the segments.
- `retention_time_unit` (String) The retention time unit for the segments.
- `retention_time_value` (String) The retention time value for the segments.
- `schema_name` (String) The name of the used schema for table
- `time_type` (String) The time type for the segments.


<a id="nestedatt--table_index_config"></a>
Expand Down Expand Up @@ -208,14 +206,6 @@ Required:



<a id="nestedatt--task"></a>
### Nested Schema for `task`

Optional:

- `task_type_configs_map` (Map of Map of String) The task configs for table


<a id="nestedatt--tenants"></a>
### Nested Schema for `tenants`

Expand Down Expand Up @@ -252,7 +242,7 @@ Optional:
- `hash_function` (String) The hash function for the table.
- `metadata_manager_class` (String) The metadata manager class name for the table.
- `metadata_manager_configs` (Map of String) The metadata manager configs for the table.
- `metadata_ttl` (Number) The metadata ttl for the table.
- `mode` (String) The upsert mode for the table.
- `out_of_order_record_column` (String) The out of order record column for the table.
- `partial_upsert_strategies` (Map of String) The partial upsert strategies for the table.
- `upsert_ttl` (String) The metadata ttl for the table.
14 changes: 7 additions & 7 deletions examples/resources/pinot_schema/resource.tf
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
resource "pinot_schema" "block_schema" {
schema_name = "ethereum_block_headers"
date_time_field_specs = [{
data_type = "LONG",
name = "block_timestamp",
format = "1:MILLISECONDS:EPOCH",
granularity = "1:MILLISECONDS",
data_type = "LONG",
name = "block_timestamp",
format = "1:MILLISECONDS:EPOCH",
granularity = "1:MILLISECONDS",
transform_function = "ago('PT3H')"
}]
dimension_field_specs = [{
Expand All @@ -13,9 +13,9 @@ resource "pinot_schema" "block_schema" {
not_null = true
},
{
name = "block_hash",
data_type = "STRING",
not_null = true,
name = "block_hash",
data_type = "STRING",
not_null = true,
transform_function = "jsonPathString(block, '$.block_hash')"
}]
metric_field_specs = [{
Expand Down
2 changes: 1 addition & 1 deletion internal/converter/converter.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ func SetStateFromTable(ctx context.Context, state *models.TableResourceModel, ta
if resultDiags.HasError() {
diags.Append(resultDiags...)
}

state.TableIndexConfig = tableIndexConfig

// Routing Config
Expand Down

0 comments on commit 519e963

Please sign in to comment.