Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Allow table reuse in multi-chunker #487

@Kiran01bm

Description

@Kiran01bm

Example below:

ζ ./spirit --host="127.0.0.1:8033" --username="tsandbox" --password="msandbox" \                                                                                                                                                         
  --database="test_spirit" \
  --statement="ALTER TABLE json_table ADD COLUMN price DECIMAL(10,2) GENERATED ALWAYS AS (JSON_EXTRACT(metadata, '$.price')), ADD INDEX idx_price_category ((JSON_EXTRACT(metadata, '$.category'), JSON_EXTRACT(metadata, '$.price')))"
spirit: error: could not parse SQL statement: ALTER TABLE json_table ADD COLUMN price DECIMAL(10,2) GENERATED ALWAYS AS (JSON_EXTRACT(metadata, '$.price')), ADD INDEX idx_price_category ((JSON_EXTRACT(metadata, '$.category'), JSON_EXTRACT(metadata, '$.price')))

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions