3 # create table with two fields and index on first field
5 # check number of tuples, totalPagesused
6 # check pagesUsed for storing hash bucket
7 # check number of index nodes, pagesUsed for storing index nodes
9 # check number of tuples, totalPagesused
10 # check pagesUsed for storing hash bucket
11 # check number of index nodes, pagesUsed for storing index nodes
13 # Note: spaceused for table = noOfDataNodes * sizeofTuple + noOfPages * sizeofPageInfo
14 #Note:Thats why we see spaceused as 16 even when no tuple exist
16 #Run this test only under csql/test or on this directory.
17 #Otherwise, it may fail
18 EXECUTABLE
=${PWD}/system
/Allocator
/create
20 if [ -s "$EXECUTABLE" ]
22 REL_PATH
=${PWD}/system
/Allocator
30 echo "Tables and Indexes are created"
36 echo "Tuples inserted into table"
37 echo "Case 1: -T option for t1: with 1 tuple"
38 $CSQL_INSTALL_ROOT/bin
/catalog
-u root
-p manager
-T t1
44 echo "Case 2: -I option for idx1 of t1, with 1 tuple"
45 $CSQL_INSTALL_ROOT/bin
/catalog
-u root
-p manager
-I t1idx1
57 echo "Tuples deleted from table"
58 echo "Case 3: -T option for t1: after removing 1 tuple"
59 $CSQL_INSTALL_ROOT/bin
/catalog
-u root
-p manager
-T t1
65 echo "Case 4: -I option for idx1 of t1, after removing 1 tuple"
66 $CSQL_INSTALL_ROOT/bin
/catalog
-u root
-p manager
-I t1idx1
77 echo "Tables and Indexes are dropped"