CreateSchema
Creates a custom report by providing dimensions and metrics.
CreateSchema
データモデル内の既存のテーブルまたはビューからローカルスキーマファイル(.rsd)を作成します。
スキーマファイルは、このプロシージャが実行されると、Location 接続プロパティで設定されたディレクトリに作成されます。ファイルを編集してカラムを含めたり除外したり、カラム名を変更したり、カラムのデータ型を変更したりできます。
本製品 はLocation を確認し、.rsd ファイルの名前がデータモデルのテーブルまたはビューに一致するかどうかを判断します。重複がある場合、スキーマファイルはデータモデル内のこのテーブルのデフォルトインスタンスよりも優先されます。既存のテーブルまたはビューに一致しないスキーマファイルがLocation に存在する場合、新しいテーブルまたはビューのエントリが本製品 のデータモデルに追加されます。
Input
| Name | Type | Required | Description |
| TableName | String | True | The name for the new table. |
| Dimensions | String | True | A comma-separated list of dimensions' Ids to include in the schema file. |
| Measures | String | True | A comma-separated list of metrics' Ids to include in the schema file. |
| Universe | String | True | The unique identifier of the universe you want to create report against. |
| WriteToFile | String | False | Whether to write the contents of this stored procedure to a file or not (Default = true) needs to be set to false to output FileStream of FileData |
| Description | String | False | An optional description for the table. |
| FileStreamIndex | String | False | The index of the schema file to stream into the output stream parameter |
Result Set Columns
| Name | Type | Description |
| FileData | String | Schema data, base64 encoded. Only returned if WriteToFile is false and FileStream is not specified. |
| Success | String | Whether or not the schema was created successfully. |
| SchemaFile | String | The generated schema file. |