Skip to content
Permalink
Browse files
[ASTERIXDB-2785][TEST] Convert MetadataTest to SQL++
- user model changes: no
- storage format changes: no
- interface changes: no

Change-Id: If8435ce0e70874559197aa2ad60600e1f70815c3
Reviewed-on: https://asterix-gerrit.ics.uci.edu/c/asterixdb/+/8283
Integration-Tests: Jenkins <jenkins@fulliautomatix.ics.uci.edu>
Tested-by: Jenkins <jenkins@fulliautomatix.ics.uci.edu>
Reviewed-by: Hussain Towaileb <hussainht@gmail.com>
  • Loading branch information
mhubail committed Oct 6, 2020
1 parent 21e04f8 commit 55d92d39cf6322c56c2093d52dca9094a14c5817
Show file tree
Hide file tree
Showing 262 changed files with 804 additions and 2,633 deletions.

This file was deleted.

@@ -17,6 +17,5 @@
* under the License.
*/

for $x in dataset('Metadata.Dataset')
where $x.DataverseName='test'
return $x
SELECT VALUE COUNT(*) FROM Metadata.`Dataset`
where DatasetName = 'GleambookUsers';
@@ -19,16 +19,16 @@

drop dataverse test if exists;
create dataverse test;
use dataverse test;
use test;

create type AuxiliaryType as open {
id: string
}
};

create type LineType as open {
id:int32,
text: string
}
};

create dataset Book(LineType) with meta(AuxiliaryType)
primary key id;
@@ -0,0 +1,22 @@
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/

SELECT VALUE ds
FROM Metadata.`Dataset` ds
WHERE ds.DataverseName='test';