Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Workbench Script with comments in between is not working #119

Open
AayushTyagi1 opened this issue Oct 19, 2023 · 0 comments
Open

Workbench Script with comments in between is not working #119

AayushTyagi1 opened this issue Oct 19, 2023 · 0 comments
Assignees

Comments

@AayushTyagi1
Copy link

AayushTyagi1 commented Oct 19, 2023

Unable to run the below script because it has comments in between

/*************************/ 
/** Scope inventory */ 
/*************************/ 
CREATE SCOPE `travel-sample`.`inventory`;

/* DDL for collection inventory.Intel */
CREATE COLLECTION `travel-sample`.`inventory`.`Intel`; 
CREATE PRIMARY INDEX `#primary` ON `travel-sample`.`inventory`.`Intel` WITH {"defer_build":true}

/* DDL for collection inventory.airport */
CREATE COLLECTION `travel-sample`.`inventory`.`airport`; 
CREATE PRIMARY INDEX `def_inventory_airport_primary` ON `travel-sample`.`inventory`.`airport` WITH {"defer_build":true}; 
CREATE INDEX `adv_country` ON `travel-sample`.`inventory`.`airport`(`country`) WITH {"defer_build":true}; 
CREATE INDEX `def_inventory_airport_airportname` ON `travel-sample`.`inventory`.`airport`(`airportname`) WITH {"defer_build":true}; 
CREATE INDEX `def_inventory_airport_city` ON `travel-sample`.`inventory`.`airport`(`city`) WITH {"defer_build":true}; 
CREATE INDEX `def_inventory_airport_faa` ON `travel-sample`.`inventory`.`airport`(`faa`) WITH {"defer_build":true}; 


/* DDL for collection inventory.airline */
CREATE COLLECTION `travel-sample`.`inventory`.`airline`; 
CREATE PRIMARY INDEX `def_inventory_airline_primary` ON `travel-sample`.`inventory`.`airline` WITH {"defer_build":true}; 
CREATE INDEX `adv_country` ON `travel-sample`.`inventory`.`airline`(`country`) WITH {"defer_build":true}; 


/* DDL for collection inventory.route */
CREATE COLLECTION `travel-sample`.`inventory`.`route`; 
CREATE PRIMARY INDEX `def_inventory_route_primary` ON `travel-sample`.`inventory`.`route` WITH {"defer_build":true}; 
CREATE INDEX `def_inventory_route_route_src_dst_day` ON `travel-sample`.`inventory`.`route`(`sourceairport`, `destinationairport`, (distinct (array (`v`.`day`) for `v` in `schedule` end))) WITH {"defer_build":true}; 
CREATE INDEX `def_inventory_route_schedule_utc` ON `travel-sample`.`inventory`.`route`(array (`s`.`utc`) for `s` in `schedule` end) WITH {"defer_build":true}; 
CREATE INDEX `def_inventory_route_sourceairport` ON `travel-sample`.`inventory`.`route`(`sourceairport`) WITH {"defer_build":true}; 


/* DDL for collection inventory.landmark */
CREATE COLLECTION `travel-sample`.`inventory`.`landmark`; 
CREATE PRIMARY INDEX `def_inventory_landmark_primary` ON `travel-sample`.`inventory`.`landmark` WITH {"defer_build":true}; 
CREATE INDEX `def_inventory_landmark_city` ON `travel-sample`.`inventory`.`landmark`(`city`) WITH {"defer_build":true}; 


/* DDL for collection inventory.hotel */
CREATE COLLECTION `travel-sample`.`inventory`.`hotel`; 
CREATE PRIMARY INDEX `def_inventory_hotel_primary` ON `travel-sample`.`inventory`.`hotel` WITH {"defer_build":true}; 
CREATE INDEX `def_inventory_hotel_city` ON `travel-sample`.`inventory`.`hotel`(`city`) WITH {"defer_build":true}; 
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants