@@ -150,84 +150,3 @@ mod select_from_table {
150
150
) ;
151
151
}
152
152
}
153
-
154
- // #[cfg(test)]
155
- // mod test_select_from_comma_separated_table_or_subqueries {
156
- // use super::test_utils::select_from;
157
- // use crate::parser::test_utils::*;
158
- // use crate::{
159
- // FromClause, Identifier, IndexedType, JoinClause, JoinTable, JoinType, QualifiedTableName,
160
- // SelectFromSubquery, Statement,
161
- // };
162
-
163
- // #[test]
164
- // fn test_select_from_comma_separated_table_or_subqueries() {
165
- // fn join(lhs: FromClause, rhs: FromClause) -> FromClause {
166
- // FromClause::Join(JoinClause {
167
- // lhs_table: Box::new(lhs),
168
- // join_tables: vec![JoinTable {
169
- // join_type: JoinType::Cross,
170
- // table: Box::new(rhs),
171
- // constraints: None,
172
- // }],
173
- // })
174
- // }
175
-
176
- // let table_1 = FromClause::Table(QualifiedTableName::from(Identifier::Single(
177
- // "table_1".to_string(),
178
- // )));
179
- // let schema2_table2 =
180
- // FromClause::Table(QualifiedTableName::from(Identifier::Compound(vec![
181
- // "schema2".to_string(),
182
- // "table2".to_string(),
183
- // ])));
184
-
185
- // let schema3_table3 = FromClause::Table(QualifiedTableName {
186
- // table_id: Identifier::Compound(vec!["schema3".to_string(), "table3".to_string()]),
187
- // alias: Some("table3_alias".to_string()),
188
- // indexed_type: None,
189
- // });
190
-
191
- // let indexed_table = FromClause::Table(QualifiedTableName {
192
- // table_id: Identifier::Single("indexed_table".to_string()),
193
- // alias: Some("t1".to_string()),
194
- // indexed_type: Some(IndexedType::Indexed("index_1".to_string())),
195
- // });
196
-
197
- // let not_indexed_table = FromClause::Table(QualifiedTableName {
198
- // table_id: Identifier::Single("not_indexed_table".to_string()),
199
- // alias: Some("t2".to_string()),
200
- // indexed_type: Some(IndexedType::NotIndexed),
201
- // });
202
-
203
- // let subquery = FromClause::Subquery(SelectFromSubquery {
204
- // subquery: Box::new(select_from(FromClause::Table(QualifiedTableName::from(
205
- // Identifier::Single("table_2".to_string()),
206
- // )))),
207
- // alias: Some("select_alias".to_string()),
208
- // });
209
-
210
- // let expected_statement = select_from(FromClause::Froms(vec![join(
211
- // table_1,
212
- // join(
213
- // schema2_table2,
214
- // join(
215
- // schema3_table3,
216
- // join(indexed_table, join(not_indexed_table, subquery)),
217
- // ),
218
- // ),
219
- // )]));
220
-
221
- // run_sunny_day_test(
222
- // "SELECT * FROM (
223
- // table_1,
224
- // schema2.table2,
225
- // schema3.table3 as table3_alias,
226
- // indexed_table as t1 INDEXED BY index_1,
227
- // not_indexed_table as t2 NOT INDEXED,
228
- // (SELECT * FROM table_2) as select_alias
229
- // )",
230
- // Statement::Select(expected_statement),
231
- // );
232
- // }
233
- // }
0 commit comments