1-- 2-- Copyright 2020 The Android Open Source Project 3-- 4-- Licensed under the Apache License, Version 2.0 (the "License"); 5-- you may not use this file except in compliance with the License. 6-- You may obtain a copy of the License at 7-- 8-- https://www.apache.org/licenses/LICENSE-2.0 9-- 10-- Unless required by applicable law or agreed to in writing, software 11-- distributed under the License is distributed on an "AS IS" BASIS, 12-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13-- See the License for the specific language governing permissions and 14-- limitations under the License. 15-- 16 17-- Model that the first table is empty and the second is has some data. 18create table t1( 19 ts BIG INT, 20 dur BIG INT, 21 PRIMARY KEY (ts, dur) 22) without rowid; 23 24create table t2( 25 ts BIG INT, 26 dur BIG INT, 27 PRIMARY KEY (ts, dur) 28) without rowid; 29 30INSERT INTO t2(ts, dur) 31VALUES 32(1, 2), 33(5, 0), 34(1, 1); 35 36create virtual table sp using span_join(t1, t2); 37 38select ts, dur from sp; 39