Changes

Jump to navigation Jump to search
no edit summary
Line 4: Line 4:     
''Ex: display product name (for main language) of all products of with category '''en:butters'''.
 
''Ex: display product name (for main language) of all products of with category '''en:butters'''.
  SELECT code, product_name  
+
  SELECT
FROM read_parquet('food.parquet')
+
  code,
WHERE product_name
+
  unnest(
ILIKE '%beurre%';
+
    list_filter (product_name, x -> x.lang = = 'main')
 +
  ) ['text']
 +
FROM
 +
  'food.parquet'
 +
WHERE
 +
  list_contains (categories_tags, 'en:milks')
 +
LIMIT
 +
  10;';
 
  ┌───────────────┬──────────────────────────────────────────────────────────────┐
 
  ┌───────────────┬──────────────────────────────────────────────────────────────┐
 
  │    code      │                        product_name                        │
 
  │    code      │                        product_name                        │

Navigation menu